LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sensing key press at start-up when running an exe

Hi,

I wanted to sense the SHIFT key being pressed at start-up so that I can enter a test mode.

The attached program works OK as a VI but stops working once built as an exe.

If the exe is stopped and then restarted (white arrow) then the operation is again as expected.

There just seems to be a problem when the exe is first launched.

Could someone try building it for me and see if you get the same problem?

(I have DirectX 11 installed and lvinput.dll is present in the exe's data folder - as expected)

Thanks

Al

Vista 32bit LabVIEW 8.5

Download All
0 Kudos
Message 1 of 4
(2,671 Views)
I get the same problem.  I can get it to work if I hit the shift key quickly after I run the exectuable.
0 Kudos
Message 2 of 4
(2,658 Views)
hmmmm!try the attached - I tried to "tickle" the read keyboard state VI before I used it for real (also tried a delay). It's better but still a little intermittent - this must be a clue?

 

Download All
0 Kudos
Message 3 of 4
(2,655 Views)
0 Kudos
Message 4 of 4
(2,649 Views)