12-14-2010 03:29 AM
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.
Solved! Go to Solution.
12-14-2010 03:45 AM
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
12-14-2010 03:48 AM
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...
12-14-2010 03:52 AM
Thanks TiTou..Thanks Anand 🙂
12-14-2010 03:52 AM
Thanks TiTou..Thanks Anand 🙂
It works as it should.