Hi, I'm happy to announce that Tasker plugin now support script call to HS3.
With scriptcall you can do much more than before, send any data to a script in hs3 and do what ever you want. There is also few callback functions that you can use from the script itself.
When you upgrade to the latest HS3 Tasker 3.0.2.9 it will add a sample script myscript.vb in your script folder.
Tasker profiles is also updated so please use the app "Setup Tasker Files" and upgrade your Tasker profiles from the installation guide.
New sample task is added in HS3 Samples
Script_Multireturn
Script_NoReturn
Script_Simple_NoData
Script_SingleReturn
With scriptcall you can do much more than before, send any data to a script in hs3 and do what ever you want. There is also few callback functions that you can use from the script itself.
When you upgrade to the latest HS3 Tasker 3.0.2.9 it will add a sample script myscript.vb in your script folder.
PHP Code:
'Simple demo code for tasker plugin.
'Call the script from tasker with: Set %HSCommand to: scriptfilename|sub/function|data
'Use the return to send back data to tasker.
'Callback names that can be used: say, status, address, playsound, returnedstring, returnedvalue
Sub Main()
hs.writelog("MyScript","No data")
End Sub
Function SingleReturn(ByVal Parms As Object)
hs.writelog("MyScript",Parms)
Return "say=Command executed with value " & Parms
End Function
Function MultiReturn(ByVal Parms As Object)
hs.writelog("MyScript",Parms)
dim strReturn as string = ""
'Use ; to separate multiple talkback commands.
strReturn = strReturn & "playsound=wolves.mp3" & ";" 'Soundfile has to be stored in soundfiles folder under tasker.
strReturn = strReturn & "say=" & Parms & ";"
strReturn = strReturn & "status=" & Parms & ";"
strReturn = strReturn & "address=39.764339,-104.8551115" & ";" 'Can be cordinates or location.
strReturn = strReturn & "returnedstring=Hi, this is a response from HS3" & ";" 'Used to catch up string from HS3 to tasker so you can make some task arround the string.
strReturn = strReturn & "returnedvalue=500" & ";" 'Used to catch up string from HS3 to tasker so you can make some task arround the string.
Return strReturn
End Function
Sub NoReturn(ByVal Parms As Object)
hs.writelog("MyScript",Parms)
End Sub
New sample task is added in HS3 Samples
Script_Multireturn
Script_NoReturn
Script_Simple_NoData
Script_SingleReturn
Comment