Announcement

Collapse
No announcement yet.

HSTouch Scripting

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HSTouch Scripting

    MLServeCmd.MLGC100|SendIR~Comcast~Ch-

    Is there a way to assign this to a button without creating an event and assigning the event to the buton?

    #2
    Probably, you need the full scripting command though, when you add actions to the button you add the action to run a HomeSeer script with values from elements. In the middle box you can add an immediate script command;

    &hs.plugin("MLServer").MLServeCmd.MLGC100|SendIR~Comcast~ Ch-

    or whatever the actual command is/plugin name is set to

    Comment


      #3
      Ok, were getting closer. Here is the command I am executing:
      &hs.plugin("MLHSPlugin").MLServeCMD.MLGC100|SendIR~Lutron~sc ene1
      error receive is:
      Running script, init error: Argument not optional: 'hs.plugin(...).MLServeCMD'

      Comment


        #4
        I'm sorry I don't have any experience with MLServer to say for definate, there is a post that suggests the syntax might be;

        &hs.plugin("MLHSPlugin").MLServeCMD("MLGC100|SendIR~Lutron~s cene1")

        Comment


          #5
          Resolved

          Went with plan B. Created a script with all the commands and called it using the ScriptProcedure.

          Sub KitSc(parm as object)
          hs.Plugin("MLHSPlugin").MLServeCMD ("MLServeCmd.MLGC100|SendIR~Lutron~scene1")
          End Sub

          Thanks for your help MrHappy!

          Comment


            #6
            Originally posted by ffneilm View Post
            Ok, were getting closer. Here is the command I am executing:
            &hs.plugin("MLHSPlugin").MLServeCMD.MLGC100|SendIR~Lutron~sc ene1
            error receive is:
            Running script, init error: Argument not optional: 'hs.plugin(...).MLServeCMD'
            Looks like you are missing some brackets here. Syntax should probably be something like this:

            &hs.plugin("MLHSPlugin").MLServeCMD("MLGC100|SendIR~Lutron~s cene1")
            Nicolai L

            Comment

            Working...
            X