LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Recording keystrokes

I would like to record pressed key. Some of them; lets say 4- arrows - up, down, right, left. What I would like also is to record the exact time every time key is pressed. Is it possible in Labview?

Thanks for any help.

Regards,
Szymon

                                                  

0 Kudos
Message 1 of 5
(2,958 Views)

Hi Szymon,

you can either use an event strucute or the input vi's. You can create your own timestamp if one of your key events occurs.

 

Mike

0 Kudos
Message 2 of 5
(2,953 Views)
Here is an example of using the event structure.
Message 3 of 5
(2,947 Views)

I have also posted code that does this on the community site. You can find it here:

 

Monitoring of Keyboard Buttons that are Pressed

 

The file is on the post. It uses the call library function node to call directly what you want.  It can also monitor up to 4keys at a time.

 

Chris Van Horn
Applications Engineer
0 Kudos
Message 4 of 5
(2,926 Views)

 

Many thanks to all of You for help!

0 Kudos
Message 5 of 5
(2,889 Views)