LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulate Keystrokes for an executable run by System Exec.vi ?

I have an executable that I call using System Exec.vi. The executable opens when I use system exec, but it needs CTRL + S to run. So I want to simulate that keystroke. Also, once it completes, I want to simulate keystrokes to close. In short, I do not want the user to do anything other than run the VI which has system exec.vi. Everything else is done by simulating keystrokes which in turn depend on some conditions I would generate. Thanks.

Kudos are the best way to say thanks 🙂
0 Kudos
Message 1 of 4
(4,168 Views)
The attached vi shows how to simulate keystrokes. Send the Control Key down code, S key down code, S key up code, then control key up code.
- tbob

Inventor of the WORM Global
Message 2 of 4
(4,168 Views)
Hi

I have LabVIEW 7.0 and looks like your VI is from 7.1 and doesn't open in mine.

Kudos are the best way to say thanks 🙂
0 Kudos
Message 3 of 4
(4,168 Views)
This happens all the time. Please mention what LV version you are using in your original question. Here is the 7.0 version.
- tbob

Inventor of the WORM Global
Message 4 of 4
(4,168 Views)