LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview to trigger keyboard press

Hello, 

 

We are working on a project where we control a game of Pac-man using an accelerometer. We plan to feed the accelerometer signal into Labview, and then have Labview trigger a keyboard press of the left, right, up, or down key depending on the signal. How would we get Labview to trigger a keyboard press based on the signal it is receiving? 

 

Thank you

JS

0 Kudos
Message 1 of 4
(2,943 Views)

Hi JS,

 

search for topics about "simulating keypress" and you will find ready-to-use functions based on Windows key events…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,940 Views)

Hi GerdW,

 

Would you mind linking to one of these posts you're referencing? I searched for "simulating keypress" but most of the topics seemed to be about receiving keyboard input to trigger a Labview event, not the other way around.

 

Thank you,

JS

0 Kudos
Message 3 of 4
(2,927 Views)

Hi JS,

 

try this link...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,896 Views)