LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

keyboard stroke emulation for OK button of message display

I am ussing the Display Message To User VI in LV7.1.
 
I want to emulate pressing the ENTER key programmatically, which in turn presses the OK button on the message display.
 
My goal is to have the message display for an X amount of time, and then drop out programmatically when I receive a TRUE from a digital input.
 
I want to eliminate the user from using the mouse to press OK or using the keyboard to press ENTER.
 
Is there a way to control the OK button for the Display Message To User VI programmatically?
0 Kudos
Message 1 of 2
(2,404 Views)

I would advise writing your own dialog VI, which you will then be able to dismiss automatically on timeouts or other conditions. You can use dialog controls to make it look like the system dialog box.

See the Three Button Dialog VI for an example. If you want to see a better example, I believe you should find one if you search the LAVA forums for "dialog".


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,400 Views)