Announcement

Collapse
No announcement yet.

General Scripting

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • spknapp
    replied
    Originally posted by jon00 View Post
    No, it will not work as WMI is not loaded on Hometroller builds.
    I was beginning to think that was the problem.

    Thanks

    Leave a comment:


  • jon00
    replied
    No, it will not work as WMI is not loaded on Hometroller builds.

    Leave a comment:


  • Rupp
    replied
    Does the Speaker.exe show in task manager?

    Leave a comment:


  • spknapp
    replied
    I'm flummoxed

    Jon, Rupp, Rick, Rich, anybody?

    Speaker starts up OK, but it always has as I think it came that way from HS. But I can't get speaker to close at shutdown. What am I missing?

    I tried the scripts given in http://board.homeseer.com/showthread.php?p=823733 :
    HTML Code:
    strComputer = "." 
              Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") 
              Set colProcessList = objWMIService.ExecQuery("Select * from Win32_Process Where Name = 'Speaker.exe'") 
              For Each objProcess in colProcessList 
                 objProcess.Terminate() 
            Next
    and I tried this I found on Jon00's site :
    HTML Code:
    Dim strComputer 
    strComputer = "." 
    Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") 
    Set colProcessList = objWMIService.ExecQuery("Select * from Win32_Process Where Name = 'Speaker.exe'") 
    For Each objProcess in colProcessList 
    objProcess.Terminate() 
    Next
    (very similar) but nothing works for me. I've got to be missing something simple, I just know it.

    Any help will be appreciated.

    Thanks

    Leave a comment:


  • jackreilly
    replied
    Thanks

    Jon,

    Thank you for the help in pointing me in the right direction.. Works great!

    Jack

    Leave a comment:


  • jon00
    replied
    http://board.homeseer.com/showthread.php?p=823733

    Leave a comment:


  • jackreilly
    started a topic General Scripting

    General Scripting

    I hope I posted this in the correct place. If not I am sorry.
    Can anyone please tell me how to have HomeSeer Speaker close when HS closes? I know there is a startup script and a shutdown script but I can't find the command to close speaker. Thank you.

    Jack
Working...
X