Declaration:
void WindowHotkey(unsigned long handle, int key);
Description
Sends the local menu command corresponding to the hot key (parameter key) to the specified window. The local window menu lists the hot keys. key is the ASCII value of the key without indicating Ctrl: for example, to imitate pressing Ctrl+T in the window, the key parameter shall be equal to 'T'.
Example
unsigned long handle = OpenWindow(WIN_WATCHES);
WindowHotkey(handle, 'A'); // imitates pressing Ctrl+A
|