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
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.
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...
Did you try resetting them manually at the beginning of your code? Can you attach a sample VI to show what you are doing?
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.
This was reported to R&D (#163449) for further investigation.
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.
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.