get Tasker to trigger a javascript function in a running Autotools webscreen

Discussion in 'Tasker' started by bikerwales, Oct 24, 2017.

  1. bikerwales

    bikerwales New Member

    Joined:
    Oct 24, 2017
    Messages:
    3
    Likes Received:
    0
    Is it possible for Tasker to trigger a javascript function in a running Autotools webscreen (without reloading/refreshing it)
    or failing that
    get Tasker to update a variable which the running Autotools webscreen can read regularly e.g. via a javascript timer or some other method.
    I’ve searched Google but failed to work out the solution - any pointers/examples welcomed :)
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Yep, it is :) Check out this section of the github page.
    In that autoToolsUpdateValues() function you can call any javascript you like!
     
    bikerwales likes this.
  3. nmcj

    nmcj Member

    Joined:
    Mar 24, 2016
    Messages:
    90
    Likes Received:
    2
    LOL. I just posted something similar. Can some one toss up a someple example? How would Tasker send the command into AutoTools?
     
    bikerwales likes this.
  4. bikerwales

    bikerwales New Member

    Joined:
    Oct 24, 2017
    Messages:
    3
    Likes Received:
    0
    loking good! a simple worked example would be great please!
     
  5. bikerwales

    bikerwales New Member

    Joined:
    Oct 24, 2017
    Messages:
    3
    Likes Received:
    0
    Sorry really struggling here and getting nowhere!
    My simple plan in an action is to:
    - Set a variable in Tasker
    = Get a running Auto Apps webscreen to pick it up
    In preparation I’ve tried a 2 step Tasker Action
    - Set the variable %Whatever in Tasker
    - Load the webscreen locally, read the variable and ‘alert’ it
    But can’t find anything from the sample files etc that works in setting my js variable.
    Basically - what html/js do I need in the webscreen to pick this Tasker variable up as a javascript variable please?
     

Share This Page