I have a text box in HSTouch that tracks the value of device A. Is there anyway to automatically update the value of Device A when the text box in HSTouch changes? I know I can setup an element in HSTouch, that when pressed, runs a script with values from elements that can update Device A's value, but this requires that the user has to click another element to force the update. I am hoping there is a way that HSTouch can automatically update Device A's value when the text box tracking Device A's value changes.
Announcement
Collapse
No announcement yet.
Automatically Update HS3 device value from HSTouch
Collapse
X
-
I cannot get the ActionsWhenTextChanged ot work, here is what I tested:
Under Misc for the textbox Properties, EnterIsChange = True and IgnoreCHange = False
The Script to be run, HSTouchTextBoxChanged.vb is:
Sub Main(parm as string())
hs.writelog("HSTouch","Text Box Changed")
End Sub
When I changed the contents of the text box and press enter, no log entry occurs in the HS log.
Comment
-
Guest
Originally posted by wmcmath View Post
Sub Main(parm as string())
hs.writelog("HSTouch","Text Box Changed")
End Sub
Solution is to declare the parameter as an object, then decide in code whether it is a string or string array:
Code:Sub Main(parm as Object) If parm.GetType().ToString = "System.String" then ' single string called from event Else ' String array called by HS Touch End If ...
Comment
Comment