I’m not sure of the exact formulation of this, or even if it’s possible.
I’m trying to use the info in “Keyboard.keyname” to make an if statement to replace the statement in KeyDown event
If Key = ChrByte(28) Then//Left arrow Key
It says [quote]This returns a value that indicates the character the key produces. In most cases, special keys will be named as follows: Esc, Tab, CapsLock, Shift, Control, Option, Alt, Command, Win, Return, Enter, Space, Fn, Delete, Backspace, Help, Insert, Home, PageUp, Del, End, PageDown, F1 through F15, PrintScreen, ScrollLock, Pause/Break, Clear, NumLock, KP=, KP/, KP*, KP-, KP0 through KP9, Up, Left, Down, and Right.[/quote]
And it follows up with this piece of code (which implies something is possible).
MessageBox(Keyboard.keyname(&h7D))
And MessageBox is supposed to print “Down”
So. I wonder if I can create something like
If left = key Then
to replace
If Key = ChrByte(28) Then
So why am I asking instead of experimenting? Because alot of times I learn different ways of doing something.