Create an APP Context and select FB Messenger
Your task will be
Wait 2 Minutes
Run your kill script and check in your Run Shell IF %PACTIVE (list of active profiles) !~ (does not match) *,NameOfYourProfile,* (the stars and commas are important, see the user's guide for pattern matching and %PACTIVE)
Go back into your profile screen, long click on the task and select "Move to exit"
Profit!! (At least I hope so, this is from memory)
On Sunday, May 12, 2013 8:45:40 AM UTC-4, Thomas M wrote:
Hey there. I've decided to try and use Tasker rather than "llama", because Tasker seems to be able to do so much more and I'd like to put all my "automatic stuff" under one application.
So yeah.. I'm new to this but not a complete noob, I guess. I'm looking for a way to, if we take Facebook Messenger for instance, to close an app's process and everything related to it, 2 minutes after I've "left" the app. So if I use Messenger then leave it, I want Tasker to kill its process after a couple of minutes BUT incase I enter the app again, this delay should be stopped along with the entire "killing" process.
It's not so much the actual killing of the process/services, I can do that with scripting, but it's more the actual * minutes delay after leaving the app in background together with the cancellation of the delay incase I enter the app again.
Any help appreciated.
Thanks!