![]() |
#2 |
Программатор
|
Может покажусь ворчуном
![]() X++: public int task(int _taskId) { #Task int ret; int KeyPressed; DLL _winApiDLL = new DLL("USER32"); DLLFunction _getAsyncKeyState = new DLLFunction(_winApiDLL, "GetAsyncKeyState"); ; ret = super(_taskId); switch(_taskId) { //check ALT-key or the F-keys case #taskAlt: keyPressed = this.checkKeyPressed(); switch(keyPressed) { case 1: { _getAsyncKeyState.returns(ExtTypes::Word); _getAsyncKeyState.arg(ExtTypes::DWord); if ( //_getAsyncKeyState.call('USER')) _getAsyncKeyState.call('U') && _getAsyncKeyState.call('S') && _getAsyncKeyState.call('E') && _getAsyncKeyState.call('R') ) { info("A"); } else { CustPickingListJour_PickingListId.setFocus(); //print("B"); } } break; default: break; } break; default: break; }//switch(_taskId) return ret; } ![]() |
|