AutoTools Dialog List - %attext value not returned

Discussion in 'AutoApps' started by autormali, Dec 17, 2016.

  1. autormali

    autormali Member

    Joined:
    Jul 4, 2016
    Messages:
    134
    Likes Received:
    22
    If you set %attext as Long Touch Command, it's value is not returned as %atcommand for the first list element when long touched. See example below: when long touch the first list element it's flashing: One %attext. For the other list elements it's OK. Flashing: Two Two, Three Three...
    Code (Text):
    Longtouch Test
    A1: Variable Set [ Name:%input To:One,Two,Three Do Maths:Off Append:Off ]
    A2: Variable Split [ Name:%input Splitter:, Delete Base:Off ]
    A3: Variable Set [ Name:%output To:1,2,3 Do Maths:Off Append:Off ]
    A4: Variable Split [ Name:%output Splitter:, Delete Base:Off ]
    A5: AutoTools Dialog [ Configuration:Dialog Type: List
    Title: Test
    List Type: 0
    Texts: %input()
    Image Width: 100
    Commands: %output()
    Long Touch Commands: %attext
    Separator: ,
    Command Variable: atcommand
    Cancelable: true ]
    A6: Flash [ Text:%attext
    %atcommand Long:Off ]
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Am I missing something or is %attext empty in that task on A5?
     
  3. autormali

    autormali Member

    Joined:
    Jul 4, 2016
    Messages:
    134
    Likes Received:
    22
    Please see the test below. The first three toasts for normal list element touch. The other three toasts for long touch on element list. The first list element long touch toast is the issue - %atcommand is returning "%attext" word. Is that mean that %attext is not set to %input(1) in this case? I don't know.

     
    Last edited: Dec 21, 2016
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    But %attext doesn't have a value in that task :) What value did you expect it to have?
     
  5. autormali

    autormali Member

    Joined:
    Jul 4, 2016
    Messages:
    134
    Likes Received:
    22
    You're right! I should enter %input() for a long touch command to get the expected value. Thank you for leading me into the right direction :)
     

Share This Page