Originally posted by tenholde
View Post
Announcement
Collapse
No announcement yet.
are these scripting commands still available in HS4?
Collapse
X
-
Originally posted by jon00 View PostI believe the HS4 scripting documentation is still being written. In the meantime, use the HS3 scripting documentation which is essentially the same:
https://help.homeseer.com/help/HS3/static/#.scripts
hs.runex does not exist. Use hs.runscriptfunc instead
Yeah, I believe it!
Leave a comment:
-
Originally posted by tenholde View Post
Are you using vbScript or vb.net? Not sure how vbScript is supported in HS4.
Code:vb.net should be: hs.WriteLog("Info","trying writelog")
Leave a comment:
-
Originally posted by JeffCharger View Post
this is the line that fails
hs.WriteLog "Info","trying writelog"
I'm now using this, and it works
hs.WriteLogEx "Info","trying writelogex","#0000f0"
Code:vb.net should be: hs.WriteLog("Info","trying writelog")
Leave a comment:
-
Originally posted by tenholde View PostCan you post the hs.WriteLog statement that is not working for you? Both the HS3 and HS4 versions of WriteLog should both work, depending upon the signature of your call. Here is a link that might help understand new scripting commands added in HS4 (IHsController interface): https://homeseer.github.io/Plugin-SD...r.html?tabs=vb
hs.WriteLog "Info","trying writelog"
I'm now using this, and it works
hs.WriteLogEx "Info","trying writelogex","#0000f0"
Leave a comment:
-
Can you post the hs.WriteLog statement that is not working for you? Both the HS3 and HS4 versions of WriteLog should both work, depending upon the signature of your call. Here is a link that might help understand new scripting commands added in HS4 (IHsController interface): https://homeseer.github.io/Plugin-SD...r.html?tabs=vb
Leave a comment:
-
Originally posted by jon00 View Posths.writelog should work, however there is an ongoing bug with some scripting commands that use two parameters in HS4. There are also bug differences when using VBScript hs.writelog "Test","Test" vs VB.NET hs.writelog("Test","Test")
Leave a comment:
-
hs.writelog should work, however there is an ongoing bug with some scripting commands that use two parameters in HS4. There are also bug differences when using VBScript hs.writelog "Test","Test" vs VB.NET hs.writelog("Test","Test")
Leave a comment:
-
Originally posted by jon00 View Post
That's because the HS3 documentation still contains HS2 stuff which was never updated correctly.
This may assist regarding HS2 scripting commands which are/are not available in HS3: https://forums.homeseer.com/forum/ho...97#post1106597
thanks for everyone's help.
Leave a comment:
-
Originally posted by JeffCharger View Post
Thanks for pointing me to the HS3 material. I'm wondering if some elements have changed? It does mention the hs.runex command (although only in passing-there's no detail).
Pointing me to hs.ruscriptfunc helps! thanks
This may assist regarding HS2 scripting commands which are/are not available in HS3: https://forums.homeseer.com/forum/ho...97#post1106597
Leave a comment:
-
Originally posted by jon00 View PostI believe the HS4 scripting documentation is still being written. In the meantime, use the HS3 scripting documentation which is essentially the same:
https://help.homeseer.com/help/HS3/static/#.scripts
hs.runex does not exist. Use hs.runscriptfunc instead
Pointing me to hs.runscriptfunc helps! thanks
Leave a comment:
-
I believe the HS4 scripting documentation is still being written. In the meantime, use the HS3 scripting documentation which is essentially the same:
https://help.homeseer.com/help/HS3/static/#.scripts
hs.runex does not exist. Use hs.runscriptfunc instead
Leave a comment:
-
are these scripting commands still available in HS4?
migrating to HS4, and I'm trying to move my scripts over. Are the following script commands/functions still available? If they are, I can't find any guidance on them. Can anyone point me in the right direction?
1) hs.launch (it doesn't seem to do anything?)
2) calling a subroutine from a script using hs.runex and using #includes
3) hs.speak. Does it work when a subroutine is called from a main module? or is it "not available"?
thanks for the help!Tags: None
Leave a comment: