LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Capturing keyboard strokes on a windows NT machine

Hi,

I am writing a program which shall run on a windows NT machine. My problem is that the Input Device Control VI's in LabVIEW 7.0, by suprise, don't support Windows NT. I have to capture the keybord strokes while the LabVIEW program is out of fokus. The key combination I have to "catch" i Ctrl+Shift+K.

I hope anyone can help me.
0 Kudos
Message 1 of 5
(3,515 Views)
Did you try using the event structure: - Key Down?
(see attached code)
0 Kudos
Message 2 of 5
(3,509 Views)
Yes I have tryed using the event structure, but this only works if the VI is in fokus. My VI is hidden, and therefor it will not work.
0 Kudos
Message 3 of 5
(3,504 Views)
Hello

This is expected behavior. The input VIs require DirectX version 8.0 to function properly. Windows NT only supports up to DirectX version 3.x, thus it does not support the input VIs.

Regards
Mohadjer
0 Kudos
Message 4 of 5
(3,480 Views)
Try using the GetKeyState or GetKeyboardState functions.
In XP they can be found in User32.dll. I'm not sure about NT.
Try looking for them on the Microsoft Developer Network (MSDN).

___________________
Try to take over the world!
0 Kudos
Message 5 of 5
(3,476 Views)