Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / BlueGUI Hotkeys & Arrow Keys

Author
Message
Rknight
20
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 14th Apr 2005 20:21
I'm trying to setup hotkeys for the arrow keys on the keyboard.

Scancodes for the arrow keys are 200,203,205,208

createHotKey 10,0,0,0,203
createHotKey 11,0,0,0,205

For right and left arrow keys, however does not work.

Anyone know why?
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 14th Apr 2005 21:33
createHotKey doesn't use keycodes (the value returned by scancode() ) since these vary depending on the keyboard layout. Instead it uses the ASCII character value of a key.

I don't know whether or not there is an ASCII code for the arrow keys. If not, you'll need to handle the KEYDOWN gadget event.


BlueGUI Windows Plugin
Rknight
20
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 14th Apr 2005 23:32
Thanks Rob, capturing the main window as a gadget and then using the event data works fine.

Login to post a reply

Server time is: 2024-04-26 15:44:13
Your offset time is: 2024-04-26 15:44:13