
Code to take input from Keyboard

Br
I want to write a code that will execute when a key is pressed by the user (for example arrow keys). I have already written the code to be executed but just can't make it to work only when the key is pressed.
I am guessing
Prompt
is the one to use but I'm not sure.Help me out please.
Thanks.
If you want code that responds to a key press (like the down arrow), you will need to write a hook function.
August 9, 2013 at 06:55 am - Permalink
You can also use GetKeyState(), but you have to poll for the input.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
August 9, 2013 at 09:32 am - Permalink
August 9, 2013 at 11:22 am - Permalink
The relevant code segment is attached as a txt file.
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
August 10, 2013 at 07:40 am - Permalink
August 12, 2013 at 05:37 am - Permalink