LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

prompt user for input enable enter key for "ok" mouse click

Hello,

 

I'm using the "prompt user for input" vi to ask a user for an input, when the user is done they have to use a mouse to click an ok box to close the dialog pop-box.... I was wondering if there was a way so that they could use the enter key on the keyboard instead of having to click ok with a mouse to close the box?

 

Thank you

0 Kudos
Message 1 of 8
(4,272 Views)

- Go to your Front Panel.

- Right-click on whichever button you are talking about

- Go to advanced >> key navigation

- Under "key assignment", select "Enter" or whichever key you want

- Enjoy 🙂

Cory K
Message 2 of 8
(4,268 Views)
Hmmmm.... well, my only problem is that my button is not on the front panel, it's on a pop up dialog box that pops up during a particular portion of the program.....
0 Kudos
Message 3 of 8
(4,266 Views)

Sorry, I misunderstood your question.

 

I just set up a simple 'prompt user for input'.

All you have to do is press 'Tab' to switch between inputs.

Then you press 'Tab' one more time, and it will highlight your 'OK' button.

Once the button is highlighted, you can just press enter.

Cory K
Message 4 of 8
(4,260 Views)
Doh!  Thanks, that worked!
0 Kudos
Message 5 of 8
(4,257 Views)

My instrument does not have "Tab" key. Is there any other way which I can use "Enter" key to do it? I am using LabVIEW 2015.

Thanks,

Steve

0 Kudos
Message 6 of 8
(2,266 Views)

Don't use "prompt user for input" express VI, but create a simple subVI that duplicates the desired functionality. Set it to "dialog" and "open FP when called", etc. and set the key navigation as you like.

Message 7 of 8
(2,262 Views)

Thank you.

0 Kudos
Message 8 of 8
(2,252 Views)