Quote:
Originally Posted by Alan Anderson
It's possible to program the Dashboard to recognize keypresses...
|
Quote:
Originally Posted by Halo_Kid_3633
How do I go about doing this?
|
The relevant functions are in the Connectivity -> Input Device Control subpalette. Use the
Initialize Keyboard vi to create a reference to the computer's keyboard. Pass that reference to the
Acquire Input Data vi. The output of the Acquire will be an array containing all the keys that are currently pressed.
If you want to test for a specific key, you can feed the "keys pressed" array into a For Loop using auto-indexing. Each iteration of the loop will get one of the keys in the array. You can compare the detected key against a constant representing the key you are looking for.