I am trying to update a HS2 script to run in HS3 and am pulling my hair out on a problem I am seeing. (I know it is because of my limited scripting experience, but in most cases I get by)
I am converting the RFXcom script step by step but when I run the first part:
I am getting the following error message:
Running script, script run or compile error in file: C:/Program Files (x86)/HomeSeer HS3/scripts/FvHRFXComInit.txt1044:Cannot use parentheses when calling a Sub in line 9 More info: Cannot use parentheses when calling a Sub
Anybody have a clue, I guess it is looking at me but I do not see it
I am converting the RFXcom script step by step but when I run the first part:
Code:
Sub Main Const comport = 7 'com port used dim errst dim cnt errst = hs.OpenComPort(comport,"4800,n,8,2",0,"RFXCOM_ACK.txt","acknowledge") if errst <> "" then hs.writelog ("Error", "opening RF transmitter COM port " & errst) else errst = hs.DeleteVar("xmit") errst = hs.CreateVar("xmit") if errst <> "" then hs.writelog ("Error", "creating xmit variable") else errst = hs.SaveVar("xmit",0) 'set no ACK received if errst <> "" then hs.writelog ("Error", "setting xmit variable") end if end if errst = hs.DeleteVar("xmitcomport") errst = hs.CreateVar("xmitcomport") if errst <> "" then hs.writelog ("Error", "creating xmitcomport variable") else errst = hs.SaveVar("xmitcomport",comport) 'set com port if errst <> "" then hs.writelog ("Error", "setting xmitcomport variable") end if end if end if errst = hs.CloseComPort(comport) hs.writelog ("FVH","DONE!!!!") End Sub
Running script, script run or compile error in file: C:/Program Files (x86)/HomeSeer HS3/scripts/FvHRFXComInit.txt1044:Cannot use parentheses when calling a Sub in line 9 More info: Cannot use parentheses when calling a Sub
Anybody have a clue, I guess it is looking at me but I do not see it
Comment