Button Click Flow

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply
User avatar
mrlou
Posts: 1
Joined: 04 Feb 2016 20:18

Button Click Flow

Post by mrlou » 06 Feb 2016 19:20

Hi guys,

I'm quite new to Automagic but as I'm a software engineer myself I think this is great stuff to quickly script your phone on the go. :D
I'm planning to create some complex flows and was thinking about an action that clicks a list of buttons and can be reused in multiple flows.
So here it is:


DOWNLOAD:
http://automagic4android.com/flow.php?i ... e5ef4cab3e

"Button Click Flow" basically only clicks the flow's ON/OFF switch which you can find in Automatic's flow edit view.
It is a sample flow that contains two action: "Define Click List" and "Click List of Buttons".

Define Click List:
This action sets a number of variables the action "Click List of Buttons" will use later. There are three variables here:
clickRetries (optional), clickDelay (optional), clickList (mandatory)
Find more details in the action itself.
If you want to reuse the action "Click List of Buttons" you want to copy this action first to be sure to set all the necessary variables first. :)

Click List of Buttons:
This action iterates over variable "clickList" and tries to click every button.
It will do {clickRetries} retries and sleep between for {clickDelay} milliseconds betweens each try.
If the action is not able to click on button it stops iterating and prints out a error message in the logs.


Hint 1:
The variables "clickRetries" and "clickDelay" are powerful tools to manipulate the flow's behaviour. If you want to see what's going on, say during flow creation, set clickRetries=10 and clickDelay=1500. But of you want your flow to be as fast as possible set clickRetries=1000 and clickDelay=1.

Hint 2:
To test this flow follow these steps:
1. download and import flow to Audomagic
2. select flow to see both actions in edit view
3. click "More Options" menu in the top right corner
4. click "Execute"


So guys that's it.
Let me know what you think.
Feel free to use this to create new flows. I would be more then happy to see someone sharing his/her flow that uses "Click List of Buttons"! :)


Cheers,
mrlou

Post Reply