App task started: Automagic

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

App task started: Automagic

Post by MURTUMA » 07 Mar 2014 10:53

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?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: App task started: Automagic

Post by Martin » 07 Mar 2014 13:37

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.

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: App task started: Automagic

Post by MURTUMA » 07 Mar 2014 15:36

Actually I'm trying to do the opposite: to stop the flow when dialogs are showing.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: App task started: Automagic

Post by Martin » 07 Mar 2014 16:40

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

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: App task started: Automagic

Post by MURTUMA » 07 Mar 2014 19:09

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.

Post Reply