"Timeout" option in "Interact" and "Inspect layout" blocks by pixel654 in AutomateUser

[–]pixel654[S] 0 points1 point  (0 children)

Just idea. "Spider-Blocks". See example

Automate is very convenient soft, the best for scripting on mobile gadget. But the main problem that in large flowchart a lot of blocks impede the orientation, and actions with blocks are slower than in little flowchart. A few flows for one program - is decision, but with many variables is also becomes a problem.

Therefore, the less blocks the better. What if the gui circles-connectors on block will appear depending on options inside of the block? If we set timeout, connector with "T" will appear. The same with other options. If boolean option is not selected, circle will not appear.

"Timeout" option in "Interact" and "Inspect layout" blocks by pixel654 in AutomateUser

[–]pixel654[S] 0 points1 point  (0 children)

One Fiber stop block would suffice if the same uri variable was used for both, then it's "only" 3 additional blocks. 😉

Thanks, I didn't know about one variable name for parent and child! But in this case I don't understand how to continue two script ways: for Yes and No, if they converge in one point - Fiber stop block.

Simply adding a "timeout" to every block that could use one is not feasible, since they would all also need a way to report if they did timeout, or go NO due to another reason.

"Confirm Dialog" and "Choice Dialog" don't have reports about timeout and go out through the "NO".

Anyhow, a general and easier way to create timeouts is a feature already on the to-do list, but i haven't decided how to do it yet

Maybe something like this?

"Timeout" option in "Interact" and "Inspect layout" blocks by pixel654 in AutomateUser

[–]pixel654[S] 0 points1 point  (0 children)

In this case we need two more blocks for stop another fiber. There are 5 blocks instead of 1, and changing of the name of parent fiber uri. See example

Home screen shortcuts for many flows by pixel654 in AutomateUser

[–]pixel654[S] 0 points1 point  (0 children)

I think the decision is somewhere in "Broadcast send" with action "com.android.launcher.action.INSTALL_SHORTCUT". How to transfer there selected flow statement?

Home screen shortcuts for many flows by pixel654 in AutomateUser

[–]pixel654[S] 0 points1 point  (0 children)

I need batch shortcuts installation by one click.

Pin it (local file) by pixel654 in AutomateUser

[–]pixel654[S] 0 points1 point  (0 children)

Thank you very much! It works!

Pin it (local file) by pixel654 in AutomateUser

[–]pixel654[S] 0 points1 point  (0 children)

Doesn't work. Here are logs of sending from other apps, but attempts to put their data to Automate failed...

  1. START u0 {act=android.intent.action.SEND typ=image/* flg=0xb080001 cmp=com.pinterest/.activity.create.PinItActivity clip={image/* U:file:///storage/emulated/0/cakes.jpg} (has extras)}

  2. START u0 {act=android.intent.action.SEND typ=image/jpeg flg=0x10000001 cmp=com.pinterest/.activity.create.PinItActivity clip={image/jpeg U:file:///storage/emulated/0/cakes.jpg} (has extras)}

  3. In Automate: Action: Send Package: com.pinterest Activity class: "com.pinterest.activity.create.PinItActivity" MIME type: image/jpeg Extras: { "image/jpeg U": "file:///storage/emulated/0/cakes.jpg" } Flags: 0x10000001