Support Board
Date/Time: Sun, 24 Nov 2024 00:01:23 +0000
Post From: Using Keyboard Shortcuts in ACSIL
[2019-03-05 06:56:15] |
Yoda - Posts: 106 |
Thanks for the reference. However I couldn't find any code examples of how to use keyboard events. So I've been testing different code, like the following sc.ReceiveKeyboardKeyEvents = 1;
sc.ReceiveCharacterEvents = 1; sc.SupportKeyboardModifierStates = 1; int PressedKey = sc.KeyboardKeyEventCode; if (sc.MenuEventID == r_SetEntry || (sc.IsKeyPressed_Control && sc.IsKeyPressed_Shift && PressedKey == 69)) // E = 0x45 = 69 (Confirmed using sc.ReceiveKeyboardKeyEvents) { I'm not sure what I'm doing wrong with above code. When <CTRL> <SHIFT> e is pressed the message log shows that the Control Shift and Windows virtual code 69 were pressed, but the code in the if statement does not run. The code does run in the if statement if I choose the r_SetEntry from the menu. Any help would be appreciated. |