Recently I made this flow to change to GPU rendering mode when using Automagic. Otherwise it works flawlessly but I also have a few other flows which shows me input dialog panels. App task started/stopped trigger fires up when those dialogs pop up which is not desirable. I know how I can prevent it by playing with variables but I have to add them to the flows with input dialog actions and check them in the GPU flow.
I'd rather leave the other flows out of this, so is it possible to detect in a condition whether I Automagic itself opened, of only an input dialog?
App task started: Automagic
Moderator: Martin
Re: App task started: Automagic
You could use triggers Activity Started and Activity Ended to determine when the input dialog activity is shown.
This does not simplify the flows much but you would not need to set the variables before/after each input dialog action.
This does not simplify the flows much but you would not need to set the variables before/after each input dialog action.
Re: App task started: Automagic
Actually I'm trying to do the opposite: to stop the flow when dialogs are showing.
Re: App task started: Automagic
You could do something like this (untested, just an idea):
flow 1
-trigger Activity Started: input dialog
-action Script: global_block = true;
flow 2
-trigger Activity Ended: input dialog
-action Script: global_block = false;
regular acceleration flow
-trigger App Task Started: Automagic
-action Sleep: 1s //ensures that the activity-flows from above run first
-condition Expression: global_block
--> true: -action Notification on Screen: not changing acceleration
--> false: -action turn on hardware acceleration
flow 1
-trigger Activity Started: input dialog
-action Script: global_block = true;
flow 2
-trigger Activity Ended: input dialog
-action Script: global_block = false;
regular acceleration flow
-trigger App Task Started: Automagic
-action Sleep: 1s //ensures that the activity-flows from above run first
-condition Expression: global_block
--> true: -action Notification on Screen: not changing acceleration
--> false: -action turn on hardware acceleration
Re: App task started: Automagic
Thanks! This allowed to do it in a way that doesn't clutter those "problematic" flows. Actually I was just thinking something similar but didn't get it to work, because I totally forgot the sleep action.