Hello,
I am new to writing scripts and I have created an HSTouch screen where I can have someone type in their alarm code to arm/disarm the system, then saves it in parm(0) and then passes it to the script. I wondered if you could take a quick look at it to make sure I'm doing this correctly. I'm using the code Spud had in the DSC user guide.
I've attached below a screen where I pull in the code from an HSTouch element and then run the below script:
Sub Main(ByVal parm As Object)
Dim inputcode
inputcode = parm(0).ToString 'Gets input code from HST
hs.PluginFunction("EnvisaLink", "", "SendKeystrokeString", new object[] { 1, inputcode]);return 0;
End Sub
I am new to writing scripts and I have created an HSTouch screen where I can have someone type in their alarm code to arm/disarm the system, then saves it in parm(0) and then passes it to the script. I wondered if you could take a quick look at it to make sure I'm doing this correctly. I'm using the code Spud had in the DSC user guide.
I've attached below a screen where I pull in the code from an HSTouch element and then run the below script:
Sub Main(ByVal parm As Object)
Dim inputcode
inputcode = parm(0).ToString 'Gets input code from HST
hs.PluginFunction("EnvisaLink", "", "SendKeystrokeString", new object[] { 1, inputcode]);return 0;
End Sub
Comment