Aide en ligne

Introducing Comfort Keys Pro
How to buy Comfort Keys Pro
How to use Comfort Keys Pro
Keyboard shortcuts settings
Working with template manager
Working with clipboard manager
Using the on-screen keyboard
Controlling the input language
Customizing the keyboard type
Editing templates
Text tags
Editing shortcut icons
Action types
Run a program; open a document or folder
Open one or several Internet resources
Paste text
Play a keystroke macro
Connect/Disconnect from a network
Comfort Keys Pro actions
Audio control
Monitor control
Window control
Perform a system action
Change the language or case
Lock/Restart/Shutdown
Block key or shortcut
Replace key or shortcut
Settings
System
Appearance Theme
Keyboard Shortcuts
On-Screen Keyboard
Show/Hide
Position
Keys
Gestures
Zoom
Typing Aid
Floating Window
Clipboard Manager
Template Manager
Text Suggestions
Language Switcher
Language Bar
Shortcut Icons
Task Switching Window
Process History Window
Sounds
Dependencies
Security
Advanced
Development
How to show, close, fade, or move the on-screen keyboard
How to lock all settings
How to activate different keyboards
FAQ for developers
Command line parameters
Other issues
FAQ - Frequently asked questions
License Agreement

How to activate different keyboards

You can specify different types of on-screen keyboards to be displayed. Please use any of the following methods.


Method 1


Change the KeyboardName registry parameter at HKEY_CURRENT_USER\Software\ComfortSoftware\CKeys from your software.


If the on-screen keyboard is visible, send the Windows message PostMessage(FindWindow('TFirstForm', 'CKeysFirstForm'), WM_CSKEYBOARD, 1, 0), and our application will reload the on-screen keyboard.


Method 2


Download this file: https://www.comfortsoftware.com/download/SetNameKB.exe

Command line format: SetNameKB.exe KeyboardName

For example: SetNameKB.exe Mini


Method 3


Use this code:


char KeyboardName[80];

COPYDATASTRUCT MyCDS;

 

KeyboardName = "Standard";

 

// Fill the COPYDATA structure

MyCDS.dwData = 1; // function identifier

MyCDS.cbData = sizeof(KeyboardName); // size of data

MyCDS.lpData = &KeyboardName; // data structure

 

// Call function, passing data in &MyCDS

HWND hwDispatch = FindWindow( "TFirstForm", "CKeysFirstForm" );

if( hwDispatch != NULL )

  SendMessage( hwDispatch,

    WM_COPYDATA,

    (WPARAM)(HWND) NULL,

    (LPARAM) (LPVOID) &MyCDS );