LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I clear the control alt delete key downs when using input acquire.vi?

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

 

0 Kudos
Message 1 of 9
(2,357 Views)

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,

Bryan H.
0 Kudos
Message 2 of 9
(2,335 Views)

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...

 

 

0 Kudos
Message 3 of 9
(2,331 Views)

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,

Bryan H.
0 Kudos
Message 4 of 9
(2,300 Views)

How would you do that...

 

Here are the VI's I am using...

 

0 Kudos
Message 5 of 9
(2,289 Views)

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,
Bryan H.
0 Kudos
Message 6 of 9
(2,265 Views)

Hi Eric,

 

This was reported to R&D (#163449) for further investigation.

 

Message Edited by Hesloppy on 04-28-2009 01:18 PM
Bryan H.
0 Kudos
Message 7 of 9
(2,220 Views)

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.

 

 

0 Kudos
Message 8 of 9
(1,703 Views)

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.

0 Kudos
Message 9 of 9
(1,690 Views)