LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

key down event handeling when the VI isn't active

Hi
  I've written a simplel VI that increases or decreases a numerical indicator depending on which key is pressed on the keyboard. But this only works when the VI window is active (the titlebar is blue and not gray). Is there anyway to listen for the key-down event even though the VI is not active?
 
In advance thanks
 
Georg
0 Kudos
Message 1 of 3
(2,378 Views)
Since the key down event is for the VI itself, I don't think so. You could however, use the Acquire Input Data function on the Input Device Control palette. I ran a quick test and it seemed to detect all key presses whether the window had focus or not.
0 Kudos
Message 2 of 3
(2,360 Views)

I recently ran into a problem with the Acquire Data.

See http://forums.ni.com/ni/board/message?board.id=170&message.id=147363

Just in case....Smiley Very Happy

0 Kudos
Message 3 of 3
(2,348 Views)