VB Script is a dead language. MS no longer supports. The difference between VB Script and VB.net in homeseer is minimal. Here is a vb script from help manual
Sub Main()
Dim DevRef
DevRef = hs.GetDeviceRefByName("Living Room Light")
if hs.ison(DevRef) then
hs.Speak "The living room light is currently on."
end if
End Sub
Here is a vb.net script from the help manual
Sub Main(parms As Object)
Dim DevRef As Integer
DevRef = hs.GetDeviceRefByName("Living Room Light")
If hs.IsOn(DevRef) then
hs.Speak("The living room light is currently on.")
End If
End Sub
Parameters are always passed in vb.net with no paramaters giving a null.
There is so little difference between vbscript and vb.net in homeseer that going with the supported vb.net seems logical in my mind.
Not pushing you in any direction just setting out pro's / con's for you to think about.
Sub Main()
Dim DevRef
DevRef = hs.GetDeviceRefByName("Living Room Light")
if hs.ison(DevRef) then
hs.Speak "The living room light is currently on."
end if
End Sub
Here is a vb.net script from the help manual
Sub Main(parms As Object)
Dim DevRef As Integer
DevRef = hs.GetDeviceRefByName("Living Room Light")
If hs.IsOn(DevRef) then
hs.Speak("The living room light is currently on.")
End If
End Sub
Parameters are always passed in vb.net with no paramaters giving a null.
There is so little difference between vbscript and vb.net in homeseer that going with the supported vb.net seems logical in my mind.
Not pushing you in any direction just setting out pro's / con's for you to think about.
Comment