Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 11:29:47 +0000



[User Discussion] - Can I detect arrows are pressed with ACSIL

View Count: 245

[2023-05-01 14:15:38]
Tony - Posts: 522
Hi,

Is there a way to detect arrows are pressed with ACSIL?

Thanks!
Date Time Of Last Edit: 2023-05-01 14:16:57
Private File
[2023-05-01 16:03:44]
JohnR - User831573 - Posts: 306
Tony,

ACSIL Interface Members - Variables and Arrays: sc.KeyboardKeyEventCode

sc.KeyboardKeyEventCode

Type: Read integer variable.

The sc.KeyboardKeyEventCode variable is set to the standard Windows virtual key code when there is a keyboard keypress event and the study has requested these events by setting sc.ReceiveKeyboardKeyEvents.

Also refer to sc.SupportKeyboardModifierStates and sc.CharacterEventCode.

Hope this helps,
JohnR
[2023-05-01 17:17:46]
Tony - Posts: 522
Thanks John! I'm running Sierra with Linux+Wine, for unknown reason sc.ReceiveKeyboardKeyEvents+sc.KeyboardKeyEventCode don't work (no response), although sc.ReceiveCharacterEvents+sc.CharacterEventCode work great.

I tested sc.KeyboardKeyEventCode in Windows 10 running under VirtualBox, it works fine, so it must be Linux/Wine issue, couldn't figure out what it is, I guess I will have to live without Key Events.

Thanks again!

Tony

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account