I am trying to intercept Keystrokes and respond to them with graphics and sound displays.
I've got it working okay for the Alpha keys (A...Z) with OnKeyPress and I've read in Help that apparently I can use the key codes Key_Left etc., and the events OnKeyDown and OnKeyUp to catch all the other keys.
But I can't discover how to code it up! 'If Key = Key_Left ...' etc. doesn't work and I can't stumble across nor find a demo of what will work.
Can someone please help me with a sample piece of code?
regards,
ab
I've got it working okay for the Alpha keys (A...Z) with OnKeyPress and I've read in Help that apparently I can use the key codes Key_Left etc., and the events OnKeyDown and OnKeyUp to catch all the other keys.
But I can't discover how to code it up! 'If Key = Key_Left ...' etc. doesn't work and I can't stumble across nor find a demo of what will work.
Can someone please help me with a sample piece of code?
regards,
ab