Announcement

Collapse
No announcement yet.

Return value from RunScriptFunc?

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

    Return value from RunScriptFunc?

    Hi, i'm trying to grab data from a script with

    PHP Code:
    dim strReturnedValue as string hs.RunScriptFunc("myscript.vb","Main","Hello",false,false
    Have tried to return value on two ways.

    PHP Code:
    Public Function Main(ByVal Parms As Object)
    hs.writelog("MyScript",Parms)
    Main "Returned value " Parms
    End 
    Function 
    PHP Code:
    Public Function Main(ByVal Parms As Object)
    hs.writelog("MyScript",Parms)
    Return 
    "Returned value " Parms
    End 
    Function 
    But none of them return any value.
    Please excuse any spelling and grammatical errors I may make.
    --
    Tasker Plugin / Speech Droid
    Tonlof | Sweden

    #2
    You are not allowing the command to wait for a response. You need to use:

    PHP Code:
     Dim strReturnedValue As String hs.RunScriptFunc("myscript.vb""Main""Hello"TrueFalse
    Jon

    Comment


      #3
      Aha so simple, many thanks
      Please excuse any spelling and grammatical errors I may make.
      --
      Tasker Plugin / Speech Droid
      Tonlof | Sweden

      Comment

      Working...
      X