How to get the value of a button
wgqkaka
Posts: 16
Hi,everyone. I want to change the channel of television through touch pannel(5200i).I have eleven buttons(from 0 to 9 and "ok").Now I have pressed "1" and it showed to me in a textinput button,but how can I get the value when I press the "ok"? whether there are some sentences in Netlinx Studio can get the button's value?Thanks!
0
Comments
Are you trying to create a queue to hold the numbers until you press okay? or are you trying to press okay after you press 1?
If its # 1 - Create a buffer that you put the numbers into for display
cNumbers = "cNumbers,cPressedButton" or something like that then when you press okay, clear out the buffer.
If its #2 - You just need to chand the xch ir mode.
It sounds like you are using something similar to the built in numpad. When you push the ok, it generates a string event. The number is contained in data.text and you have to parse out the information. to make it usable. Check out DATA_EVENT in the netlinx help.
Jeff