macromark
This script below is running successful in HS4 on an updated install of HS4. However on a fresh install of HS4 this script is nor running and I will get the following error message:
Running script Windkracht.vb :Exception has been thrown by the target of an invocation.Conversion from string "" to type 'Integer' is not valid.
sub Main(ByVal strDevRef As String)
Dim windkracht As Integer
Dim WindkrachtString As String
WindkrachtString = hs.DeviceString(1526)
windkracht = Left(Windkrachtstring, 1)
hs.SetDeviceValueByRef( 1526, windkracht, TRUE )
end sub
---
John
This script below is running successful in HS4 on an updated install of HS4. However on a fresh install of HS4 this script is nor running and I will get the following error message:
Running script Windkracht.vb :Exception has been thrown by the target of an invocation.Conversion from string "" to type 'Integer' is not valid.
sub Main(ByVal strDevRef As String)
Dim windkracht As Integer
Dim WindkrachtString As String
WindkrachtString = hs.DeviceString(1526)
windkracht = Left(Windkrachtstring, 1)
hs.SetDeviceValueByRef( 1526, windkracht, TRUE )
end sub
---
John
Comment