Someone said I should learn to use vb scripts instead of txt scripts, so I'm trying to do that. Can anyone tell me what's wrong with this script?
"OpenComPort3.vb" script below runs to open the port:
"Error 3 - Running script DenonReceiver.vb :method not found"
I got it working fine in the .txt version, but for the life of me can't figure out how to call DenonReceiver.vb properly... Help?!!..
"OpenComPort3.vb" script below runs to open the port:
Sub Main(parm as object)
"DenonReceiver.vb" script below is called when characters are received:dim e
e=hs.OpenComPort(3,"9600,n,8,1",1,"DenonReceiver.vb","main", vbcr)
if e <> "" then
hs.writelog("Error opening com3",e)
end if
End Sube=hs.OpenComPort(3,"9600,n,8,1",1,"DenonReceiver.vb","main", vbcr)
if e <> "" then
hs.writelog("Error opening com3",e)
end if
Sub Main(ByVal data as String)
Both scripts run without errors on their own, but when characters are received and DenonReceiver.vb is called, it logs the following error:' when mode is a 1, data is complete string
' process the com port data here
hs.writelog("COM DATA 3",data)
hs.setdevicestring("v8",data)
End Sub' process the com port data here
hs.writelog("COM DATA 3",data)
hs.setdevicestring("v8",data)
"Error 3 - Running script DenonReceiver.vb :method not found"
I got it working fine in the .txt version, but for the life of me can't figure out how to call DenonReceiver.vb properly... Help?!!..
Comment