11-23-2008 06:37 PM
Hello,
I am trying to simulate the arrow key events (left, right, up & down) in labview. Lets say I would like the events to happend when a slider bar goes beyond a certain threshlold (later I will inteface it with a daq).
I found this example but, I can not figure out how to move the arrow keys (and I have not experiance with the User32.dll):
http://zone.ni.com/devzone/cda/epd/p/id/3711
I would really appreciate the help.
Many thanks
Solved! Go to Solution.
11-24-2008 03:11 AM
If i understand you correctly, you want to make the program "press the arrow keys"?
If so, you can use the arrow keys Value(signalling)-property to create an event which will be handled as if you pressed the arrow key yourself.
does this help?
/Yamaeda
11-24-2008 04:37 AM
I searched around for a while, but I can't remember where on the forums I initially found this VI so I can't give due credit.
It is similar to the VI you posted simulating a keyboard, but it would proably suit your needs better
12-07-2008 10:25 PM
Thank you thank you a lot. This is what I needed!!!
... it took me long enought to reply 😞
03-26-2009 03:21 AM
Hi,
I need to get multiple-key-press of arrow-keys. i.e., if I press Up-Arrow-Key, keep hold it down, while being pressed down press Left-Arrow-Key and keep it pressed(now both keys are pressed First: Up, Second: Left). Now my requirement is I need to get the following sequence of Key-Values -
Up-Key, Left-Key, Up-Key, Left-Key, Up-Key, Left-Key ...etc.,
as long as both keys are kept dow.
-Any help is appreciated
-Beginer
03-26-2009 05:12 AM - edited 03-26-2009 05:13 AM
If you use the VI I posted, simulate keyboard.vi then you can define the type of keypress that is performed. Your choice of [key down] [Down then Up] [Key release]
03-30-2009 01:27 PM
Hi,
Is it possible to get an 8.2 or lower version of the vi?
-Rgds
-sbs
03-31-2009 04:13 AM - edited 03-31-2009 04:13 AM
Here's it in 8.0
04-03-2009 06:08 AM
04-03-2009 06:18 AM
If you want to aquire keyboard strokes, the easiest method is to use the event structure, you can check for the type of key press. However it is not available in the base package - if you have the base LabVIEW package you will need to poll the keyboard or monitor user32.dll for keyboard presses.