04-16-2009 01:21 PM
I am trying to monitor keystroks... When I use the Input Acquire.vi after I log in to my system it says the Control LAlt and the Delete key are down and my code does not like that because the keyboard value is not corect...the Keypressed array always has 3 keys down....
Is there a way to clear them or send key ups some how to get rid of them.
Thanks for any help you can provide...
I am using Labview 8.0
Thanks
Eric Horwitz
04-17-2009 03:38 PM
Hi Eric,
Where are you getting the Input Acquire vi from?
I am guessing that the Control, Alt, and delete keys are being pressed when you press them to start the log on process. Is that correct?
One thing you could try is having your vi remove the 3 elements of the array when it starts.
Best Regards,
04-17-2009 03:56 PM
Yes Acquire is from Input palet....
And I aggree it is from the login sequance but the Key does not go up....
Only does after hitting it again...
04-20-2009 02:19 PM
Hi Eric,
Did you try resetting them manually at the beginning of your code? Can you attach a sample VI to show what you are doing?
Best Regards,
04-21-2009 09:46 AM
How would you do that...
Here are the VI's I am using...
04-22-2009 04:58 PM
Hi Eric,
I am seeing the same thing you are. I was able to duplicate your results with a very simple VI. When I have my VI running and I push Ctrl-Alt-Del then push cancel, all three buttons remain in the array until I push them individually again. I also have problems when I push the windows key and L (to lock the computer) When I do this I have to push ctrl-alt-del to log back in. In this case the ctrl-alt-del keys are not still in the array, but the Windows Key is.
I am looking into why this is, and on some possible work arounds.
Best Regards,
04-28-2009 01:16 PM - edited 04-28-2009 01:18 PM
Hi Eric,
This was reported to R&D (#163449) for further investigation.
06-24-2013 09:35 AM
I am having the same issue and Is there away to fix this?
I tried using the event structure and keydown event but can only read one key at a time.
06-24-2013 12:38 PM - edited 06-24-2013 12:55 PM
There is no way that you can press multiple buttons at exactly the same time. Which keys are you trying to press? Are you talking about "PlatMods" (shift, ctrl, etc.)?
Keep a shift registers with the states of the desired buttons in a boolean array and change the respective elements to true or false, depending on key-up and key-down events. On the Key down events, check if all elements are true and act accordingly.