IN HS2, I called the script below from the startup script. I now get an hs.launch error?
HTML Code:
sub main() if not hs.IsApplicationRunning("Speaker") then lRet = hs.Launch(hs.GetAppPath & "\speaker.exe","1st Floor",,1) hs.waitSecs 5 lRet = hs.Launch(hs.GetAppPath & "\speaker.exe","Backyard",,1) hs.waitSecs 5 lRet = hs.Launch(hs.GetAppPath & "\speaker.exe","2nd Floor",,1) Else hs.writelog "Speakers", "Speaker clients are already running." end if hs.WaitSecs 10 hs.SetVolumeEx 80, "blaser:1st Floor" hs.SetVolumeEx 80, "Blaser:2nd Floor" hs.SetVolumeEx 80, "Blaser:Backyard" hs.speak "Homeseer speaker clients are running",TRUE end sub
Comment