Trigger UI event

Post your questions and help other users.

Moderator: Martin

Post Reply
bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Trigger UI event

Post by bogdyro » 04 May 2016 11:56

Hello. Is there a way to trigger a flow when the content within the same application changes. If I use UI event it triggers only the first time an app is open. It doesnt trigger again when it gets to the next screen. Maybe it could be improved by setting the filter to look through the whole fields in that window.
There is a plugin for tasker that triggers on every ui update (it's called autoinput) and then let's you choose which field in the window has the text you're looking for.

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

Re: Trigger UI event

Post by MURTUMA » 04 May 2016 12:41

Autoinput plugin should work with Automagic too. At least there is an implicating mention about that in another topic.

Also, the trigger provides some variables which contains info from the ui event. That might help you to filter relevant events with trigger itself or condition Expression.

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

Re: Trigger UI event

Post by Martin » 04 May 2016 15:01

The trigger UI Event also provides a way to react to different event types like 'Text changed'. Maybe this works for your case.
I'm aware that there are a few more events that could be monitored but this used to slow down the entire system in the past so I have not added every possibility.

bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Re: Trigger UI event

Post by bogdyro » 05 May 2016 03:45

Thanks for the answers. So running the activity com.google.android.googlequicksearchbox.MUSIC_SEARCH opens a screen and listens for a song. That triggers Ui event,window open; if it can't find a match then another screen opens saying that there was no match,blabla. This triggers the event again. However when it does find a match the new window with the result doesnt trigger at all. I don't know why.
And the autoinput plugin works how it should. The trigger used is UI update which I guess occurs very frequently. I'm gonna keep using this for now altough I would like an automagic-only solution. Thanks.

Post Reply