Announcement

Collapse
No announcement yet.

General Scripting

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

  • 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

  • #2
    http://board.homeseer.com/showthread.php?p=823733
    Jon

    Comment


    • #3
      Thanks

      Jon,

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

      Jack

      Comment


      • #4
        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
        Steve

        (System configuration is in my profile)

        Comment


        • #5
          Does the Speaker.exe show in task manager?
          -Rupp
          sigpic

          Comment


          • #6
            No, it will not work as WMI is not loaded on Hometroller builds.
            Jon

            Comment


            • #7
              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
              Steve

              (System configuration is in my profile)

              Comment

              Working...
              X