Announcement

Collapse
No announcement yet.

Script problem when Homeseer run as Service

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

    Script problem when Homeseer run as Service

    I am having an issue with a script I wrote when I am running homeseer as a service. The script sends commands to Girder to control my media center PC (same computer Homeseer and girder runs on). All is running on Win 7 x64. The script works fine when Homeseer is not being run as a service. My fist thought was permissions where not set right but I set the homeseer service to run on the same account that is logged in and runs girder and MediaCenter and I still have the same issue. The script is a .vbs

    'Send Media Center Commands

    sub MCECommand(message)
    'hs.writelog "MCE Script", "Scriptrunning"
    Set GirderCmd = CreateObject("GIRDERX.Girder")

    Select Case message
    case "StartMCE"
    if hs.devicevalue("z1") = "0" Then
    hs.TriggerEvent("Turn TV On")
    End If
    GirderCmd.TriggerEvent "StartMCE",18,"","","",0
    case "vol+"
    GirderCmd.TriggerEvent "Vol+",18,"","","",0

    case "vol-"
    GirderCmd.TriggerEvent "Vol-",18,"","","",0
    case "mute"
    GirderCmd.TriggerEvent "Mute",18,"","","",0
    case "skipback"
    GirderCmd.TriggerEvent "SkipBack",18,"","","",0
    case "skipfwd"
    GirderCmd.TriggerEvent "SkipFwd",18,"","","",0
    case "up"
    GirderCmd.TriggerEvent "Up",18,"","","",0
    case "down"
    GirderCmd.TriggerEvent "Down",18,"","","",0
    case "left"
    GirderCmd.TriggerEvent "Left",18,"","","",0
    case "right"
    GirderCmd.TriggerEvent "Right",18,"","","",0
    case "ok"
    GirderCmd.TriggerEvent "Enter",18,"","","",0
    case "moreinfo"
    GirderCmd.TriggerEvent "Info",18,"","","",0
    case "greenbutton"
    GirderCmd.TriggerEvent "WMC",18,"","","",0
    case "startMCE"
    GirderCmd.TriggerEvent "startMCE",18,"","","",0
    case "ch+"
    GirderCmd.TriggerEvent "Ch+",18,"","","",0
    case "ch-"
    GirderCmd.TriggerEvent "Ch-",18,"","","",0
    case "back"
    GirderCmd.TriggerEvent "Back",18,"","","",0
    case "Pause"
    GirderCmd.TriggerEvent "Pause",18,"","","",0
    case "Record"
    GirderCmd.TriggerEvent "Record",18,"","","",0
    case "Stop"
    GirderCmd.TriggerEvent "Stop",18,"","","",0
    End Select


    End Sub
    Has anyone run into this problem?

    #2
    Any error in Event Viewer when above runs?
    Please excuse any spelling and grammatical errors I may make.
    --
    Tasker Plugin / Speech Droid
    Tonlof | Sweden

    Comment


      #3
      Nope - No errors. It seams to trigger fine. I have another script that is a .txt that controls a omnimount arm via com port that works fine when Homeseer runs as a service. The more I have played with it I am starting to think it is a problem with this active X control or permissions when it comes to this active X control becouse everything else I am using seams to be running ok.

      Comment


        #4
        Originally posted by colemanscott View Post
        Nope - No errors.
        In the Event Viewer under windows administrator tools?
        Check if girderx.dll have same rights as homeseer service user.
        Please excuse any spelling and grammatical errors I may make.
        --
        Tasker Plugin / Speech Droid
        Tonlof | Sweden

        Comment


          #5
          Ahh - you said event viewer. I need to check that. For some reaosn I was thinking Homeseer Log. I will have to check that tonight when I get home. I will check the rights as well.

          Comment


            #6
            The service doesn't have the permissions needed to access your object.
            💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

            Comment


              #7
              Originally posted by Rupp View Post
              The service doesn't have the permissions needed to access your object.
              I have tried changing the user acocunt homeseer runs under to one with admistrative privilages and the one that girder is running under. After doing that it still did not execute the ActiveX object. Is my only option to run homeseer in standard mode?

              Comment

              Working...
              X