Download manager notification

Post your questions and help other users.

Moderator: Martin

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

Download manager notification

Post by MURTUMA » 17 Feb 2014 18:46

How can I use OR operator in this script? I have tried various things but nothing seems to work.

http://automagic4android.com/flow.php?i ... cd82dbedc8
Last edited by MURTUMA on 17 Feb 2014 21:48, edited 2 times in total.

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

Re: help with expression?

Post by Martin » 17 Feb 2014 18:59

The expression looks good to me. Please add a condition Debug Dialog in the flow to see what title contains when the flow is executed automatically.

You can also initialize the variable title in the condition right before the condition is evaluated to make some experiments with the script.
For example change the script in the condition to this script and select Menu->Execute:

Code: Select all

title = "abc Finish xyz";
contains(title, "Finish") OR contains(title, "complete")

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

Re: help with expression?

Post by MURTUMA » 17 Feb 2014 20:34

Ok, the problem lies somewhere else then. I noticed that the notification contains only text and not title. It reads "(file name) Download complete." I've tried the the word "complete" with and without period. Neither works. Notification is from download manager sysstate app.

EDIT: Edited the topic to more suitable to the new problem, as the first one wasn't actually a problem atall.

Post Reply