Эмуляция нажатий клавиш на клавиатуре
Keyabord( "<Command>", "<Params">
[, HWND] )
Commands: |
Params example: |
Comment: |
"PRESS" |
"Ctrl+Alt+A" |
|
"KEYDOWN" |
"Num Enter" |
|
"KEYUP" |
"Num Enter" |
|
"TYPE" |
"Testing string" |
Type string using keyboard layout.
Note: for typing ["] use [""]
Example: Keyboard( "TYPE", "Testing ""string"""
) |
"ON" | "OFF" |
"Num Lock" | "Caps Lock" | "Scroll
Lock" |
|
"LAYOUT" |
"English" or any other |
See "Keyboard layout hotkeys"
in plugin settings |
Direct send keyboard messages: |
"WM_KEYDOWN" |
"X", hWnd |
|
"WM_KEYUP" |
"X", hWnd |
|
"WM_PRESS" |
"X", hWnd |
WM_KEYDOWN & WM_KEYUP |
Пример:
Winamp (даже если он не активен) подумает что нажали кнопку X, другие
приложения никак не отреагируют.
h
= Winamp("GET_HANDLE")
Keyboard( "WM_PRESS", "X", h )
|