![]() |
#6 |
Участник
|
сорри
// returns true if the button is pressed at the time of invocation static boolean isButtonDown(int keyId) { DLL _winApiDLL = new DLL('USER32'); DLLFunction _getKeyState = new DLLFunction(_winApiDLL, 'GetKeyState'); int retval; _getKeyState.returns(ExtTypes::Word); _getKeyState.arg(ExtTypes: ![]() retval = _getKeyState.call(keyId); return retval > 0x7FFF; } |
|
|
За это сообщение автора поблагодарили: axaLearner (1). |
Теги |
winapi, горячие клавиши |
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|