AIT_IMESimulateHotKey

Description

Simulates a specified IME hot key.

Format

bool AIT_IMESimulateHotKey  (
 integer nWndHandle,     // Window handle
 integer nHotKeyId       // Hot key ID
);

Parameters

nWndHandle (input)

Specify a window handle.

nHotKeyId (input)

Specify the ID of an IME hot key, which must be one of the following values.

ValueDescription
IME_CHOTKEY_IME_NONIME_TOGGLEThis hot key used in the simplified Chinese version switches between IME operation and non-IME operation.
IME_CHOTKEY_SHAPE_TOGGLEThis hot key used in the simplified Chinese version selects appropriate IME shape conversion mode.
IME_CHOTKEY_SYMBOL_TOGGLEThis hot key used in the simplified Chinese version selects appropriate IME shape conversion mode. You can enter Chinese segmentations and two-byte symbols if you assign the keyboard them.
IME_JHOTKEY_CLOSE_OPENThis hot key used in the Japanese version opens and closes the IME.
IME_KHOTKEY_ENGLISHThis hot key used in the Korean version translates into English.
IME_KHOTKEY_SHAPE_TOGGLEThis hot key used in the Korean version selects appropriate IME shape conversion mode.
IME_KHOTKEY_HANJACONVERTThis hot key used in the Korean version selects conversion to Hanja mode.
IME_THOTKEY_IME_NONIME_TOGGLEThis hot key used in the traditional Chinese version switches between IME operation and non-IME operation.
IME_THOTKEY_SHAPE_TOGGLEThis hot key used in the traditional Chinese version selects appropriate IME shape conversion mode.
IME_THOTKEY_SYMBOL_TOGGLEThis hot key used in the traditional Chinese version selects appropriate IME symbol conversion mode.

Return values

The return value is true if the function was executed normally, and false if not. If the function has returned false, you can use AIT_GetLastError to acquire an extended error code. The following gives the error codes that AIT_GetLastError might return:

Extended error numberError code
87ERROR_INVALID_PARAMETER
1400ERROR_INVALID_WINDOW_HANDLE