Problems with AutoApps command system

Discussion in 'Tasker' started by Daniel D, Oct 28, 2016.

  1. Daniel D

    Daniel D Member

    Joined:
    Feb 11, 2015
    Messages:
    127
    Likes Received:
    11
    So I have set up this profile to help me build some other profiles (that are going to integrate a lot of AutoTools commands).
    The idea is to see if the commands were correctly issued and intercepted.
    My problem is that this profile only reacts to some other AutoPebble related projects (that are known to work correctly), but not to the commands issued by this menu generated with AutoTools.

    Here is the helping profile:

    Profile: 1.winter.menu (210)
    Event: AutoApps Command [ Configuration:Command Filter: .
    Regex: true ]
    Enter: 1.winter (180)
    A1: Flash [ Text:Winter is coming! Long:On ]
    A2: [X] For [ Variable:%line Items:1:30 ]
    A3: [X] Read Line [ File:/storage/3362-3334/tasker/list_used.cfg Line:%line To Var:%pkg ]
    A4: [X] Run Shell [ Command:pm disable %pkg Timeout (Seconds):0 Use Root:On Store Output In: Store Errors In: Store Result In: Continue Task After Error:On ]
    A5: [X] End For
    A6: [X] Flash [ Text:Winter is here! Long:On ]
    A7: [X] Flash [ Text:Summer is coming! Long:On ]
    A8: [X] For [ Variable:%line Items:1:30 ]
    A9: [X] Read Line [ File:/storage/3362-3334/tasker/list_used.cfg Line:%line To Var:%pkg ]
    A10: [X] Run Shell [ Command:pm enable %pkg Timeout (Seconds):0 Use Root:On Store Output In: Store Errors In: Store Result In: Continue Task After Error:On ]
    A11: [X] End For
    A12: [X] Flash [ Text:Summer is here! Long:On ]
    A13: Flash [ Text:%aamessage Long:Off ]


    And the menu profile:

    1.winter.menu (211)
    A1: AutoTools Dialog [ Configuration:Dialog Type: List
    List Type: 0
    Texts: Freeze,Unfreeze,Unfreeze & update
    Text Size: 20
    Image Width: 100
    Commands: Freeze,Unfreeze,Unfreeze & update
    Command Prefix: winter
    Dim Background: true
    Top Margin: 16
    Bottom Margin: 16
    Bottom Buttons Top Margin: 16
    Bottom Buttons Bottom Margin: 16
    Close On Select: true
    Separator: ,
    Command Variable: atcommand
    Cancelable: true
    Turn Screen On: true Timeout (Seconds):60 ]


    Please ignore the actions inside the tasks. They are a work in progress.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
    Can you please let me know what your intentions are with having the command filter being just .?

    Thanks
     
  3. Daniel D

    Daniel D Member

    Joined:
    Feb 11, 2015
    Messages:
    127
    Likes Received:
    11
    I want to see that a command was correctly sent and, if it works, display the command in a toast.
    It is for debugging purposes.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
    Ok. The AutoTools dialog won't send AutoTools commands though. You'll need to check the %atcommand variable in the task. If you want to send out a command then you can use the AutoApps action to do so.

    Hope this helps!
     
  5. Daniel D

    Daniel D Member

    Joined:
    Feb 11, 2015
    Messages:
    127
    Likes Received:
    11
    Yeah, it worked! Thanks!
    One more question though: why is %atbutton 1 when pushing Cancel and 2 when selecting any of the menu items?
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
    That's just so you can easily know if the response was positive or negative :) Glad it worked!
     

Share This Page