AutoTools Autotools Web Screen onclickandlongclick examples?

Discussion in 'AutoApps' started by nmcj, Jan 8, 2018.

  1. nmcj

    nmcj Member

    Joined:
    Mar 24, 2016
    Messages:
    90
    Likes Received:
    2
    Hiya

    Does anyone have an example using the onclickandlongclick autotools command?

    Just having some trouble getting the references right.

    Thanks,

    NJ
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Here's an example:

    Code (Javascript):
    AutoTools.onclickandlongclick(expandButton,e=>AutoTools.sendCommand("short"),e=>AutoTools.sendCommand("long"),500);
    This will send a command with the text short when when you click on the element expandButton and a command with the text long when you long click it.

    Hope this helps!
     
    Last edited: Jan 11, 2018
  3. nmcj

    nmcj Member

    Joined:
    Mar 24, 2016
    Messages:
    90
    Likes Received:
    2
    Nice! Thanks
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Oops, the example was wrong. I've now fixed it! Sorry about that!
     
  5. nmcj

    nmcj Member

    Joined:
    Mar 24, 2016
    Messages:
    90
    Likes Received:
    2
    no worries. thanks
     

Share This Page