Page 1 of 1
Notification on Statusbar Displayed/Selected
Posted: 23 Jan 2014 12:04
by Ra9om1ak
I have a question, if Automagic can recognize notification form "A" person from contact list ? If the notification is from whatsapp, for example, and from person A, then do *something* (flow).
Thx.
Re: Notification on Statusbar Displayed/Selected
Posted: 23 Jan 2014 12:30
by colabi
Trigger: Notification on Stausbar Displayed > Package Name: (select WathsApp)
Expression: contains(title, "A")
if True... Action...
or take a look at this:
http://automagic4android.com/forum/view ... egex#p4686
Re: Notification on Statusbar Displayed/Selected
Posted: 23 Jan 2014 13:07
by Ra9om1ak
Thx, it's working
Where can I find instructions (syntax) to variables ? There is a some kind of list ?
here: contains (title, "A") - contains, and others ?
Re: Notification on Statusbar Displayed/Selected
Posted: 23 Jan 2014 13:38
by colabi
Re: Notification on Statusbar Displayed/Selected
Posted: 23 Jan 2014 14:00
by Ra9om1ak
That's ok, I have seen that, but I am searching for some kind of list with syntax.
Thx.
Re: Notification on Statusbar Displayed/Selected
Posted: 24 Jan 2014 09:13
by Martin
The scripting language in general is documented in action
Script (huge online page) or when you press the [?]-icon in Automagic while editing an action
Script. Scroll down to section
Functions for a list of all functions with a short description of each function.
The same information is also available when you press button
Function in an action
Script or condition
Expression.
Regards,
Martin
Re: Notification on Statusbar Displayed/Selected
Posted: 28 Jan 2014 07:18
by Ra9om1ak
Ok, Martin, then tell me please, where can I find our example: Expression: contains(title, "A") in your action Script or condition Expression ? I can't see it.
Thx.
Re: Notification on Statusbar Displayed/Selected
Posted: 28 Jan 2014 18:57
by Martin
There is a general description of the function
contains in action script:
http://automagic4android.com/en/help/co ... ion_script
The documentation does not contain examples for every function, it just contains a description of the syntax in general.
Regards,
Martin