01-08-2008 07:14 AM - last edited on 06-24-2013 09:44 AM by JordanG
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.
01-08-2008 09:34 AM
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