LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

keypressed release

Hello,

I'd like to kown if it's possible on Labwindows/cvi, to get event from long push or release on keyboard?
I know that I can have EVENT_KEYPRESS but if user push on a key during some seconde I would have the information of push event, time and release event.

Thanks for help.

 
0 Kudos
Message 1 of 2
(2,633 Views)

Hello Julien,

You could use the GetKeyState function to help you out. Take a look at the small example that I wrote for you, attached to this post.

Note that this is not a CVI function. You will need to include windows.h in your source file. You can find more information here:

http://msdn2.microsoft.com/en-us/library/ms646301(VS.85).aspx

0 Kudos
Message 2 of 2
(2,616 Views)