Multiple AutoApps Variable inside a variable name

Discussion in 'AutoApps' started by soumyaranjanmahunt, Feb 21, 2019.

  1. soumyaranjanmahunt

    soumyaranjanmahunt Member

    Joined:
    Oct 8, 2018
    Messages:
    120
    Likes Received:
    4
    I have a task that accepts %anbutton$text values with $ varying from 1 to 5. I was wondering if i can pass a variable like %anbutton(%index)text where %index will contain digit(1-5) and in the end it will be passed as %anbutton$text, i.e for %index 1, the value of %anbutton1text will be passed. Is there any way to do that??

    Oneplus 5 Stock OOS
     
  2. alienclone

    alienclone New Member

    Joined:
    Feb 8, 2017
    Messages:
    26
    Likes Received:
    0
  3. soumyaranjanmahunt

    soumyaranjanmahunt Member

    Joined:
    Oct 8, 2018
    Messages:
    120
    Likes Received:
    4
    The point is its not an array, they are different variables.

    Sent from my ONEPLUS A5000 using Tapatalk
     
  4. alienclone

    alienclone New Member

    Joined:
    Feb 8, 2017
    Messages:
    26
    Likes Received:
    0
    so %anbutton is one variable, and %index is another, and you want to join them into %anbuttonindex?
    that sounds like a variable join scenario

    edit: sorry, i think i still have arrays on the brain, i am on the wrong thought path.
     
  5. alienclone

    alienclone New Member

    Joined:
    Feb 8, 2017
    Messages:
    26
    Likes Received:
    0
    perhaps just use variable set to set %anbuttonindextext to %anbutton%index with append checked
     
  6. soumyaranjanmahunt

    soumyaranjanmahunt Member

    Joined:
    Oct 8, 2018
    Messages:
    120
    Likes Received:
    4
    Sorry i didn't clerly mention, the variables i am talking about is from AutoNotification action intercept (the notification buttons variables).

    Sent from my ONEPLUS A5000 using Tapatalk
     

Share This Page