Announcement

Collapse
No announcement yet.

Help with HSTouch Actions

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

    Help with HSTouch Actions

    I'm trying to change screens with a script. The script errors with an explanation that I don't understand. I pulled the script out of the HSTouch Designer Help file.

    PHP Code:
    Sub Main(parm as object)

        
    ' the plugin object

        dim hstplug as object
        
        ' 
    get a reference to the HSTouch Server plugin
        hstplug 
    hs.plugin("HSTouch Server")

        
    ' make sure the reference is good
        if hstplug is nothing then exit sub

        ' 
    call the method on the plugin to perform the action
        
    ' in this case change screen to home on iPad
        hstplug.ClientAction(60,"","Home","")

    End Sub 
    The only change I made is from 'main' to 'Home' in the last statement.

    Can someone steer me in the right direction?

    Thanks
    Don

    #2
    OK. Things have changed. I keep forgetting new formatting.
    The correct way to control HSTouch is
    PHP Code:
    hs.PluginFunction("HSTouch Server""""ClientAction", {60"Don's Ipad:Don's iPad""Weather Screen"""}) 
    Don

    Comment

    Working...
    X