LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pass selected contains of a combo box to an string indicator when the enter key is pressed

Solved!
Go to solution

Hi,

 

How to pass selected contains of a combo box to an string indicator when the enter key is pressed from keyboard?

 

Right now i am using a button to send the commands selected from the combox to pass it to the string indicator.

 

The pictures shows a combo box with the button i use to send it to the indicator as example.

 

After the user selects the text to pass, the "send cmd" button should be pressed to pass the string.

 

I need to pass the selected string when the user presses the enter button from keyboard instead of pressing the "send cmd" button.

 

Kindly need you help.

 

 

Download All
0 Kudos
Message 1 of 5
(2,405 Views)
Solution
Accepted by topic author Mr.7

Hello,

 

You can use a event structure to capture keystrokes and filter, only pass the combo box' value to the string indicator when the Return or Enter key is pressed.

 

Let me know it the attached example (in LV 8.6) helps you.


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 2 of 5
(2,388 Views)

You can use the Acquire inpu data vi to monitor the status of the Keyboard and can pass the data when the Enter key is pressed. The Enter key will be displayed as return...Smiley Wink

-----

The best solution is the one you find it by yourself
Message 3 of 5
(2,386 Views)

Thanks TiTou..Thanks Anand 🙂

 

 

0 Kudos
Message 4 of 5
(2,381 Views)

Thanks TiTou..Thanks Anand 🙂

 

It works as it should.

 

0 Kudos
Message 5 of 5
(2,380 Views)