Notification on Statusbar Displayed/Selected

Post your questions and help other users.

Moderator: Martin

Post Reply
Ra9om1ak
Posts: 32
Joined: 06 May 2013 14:26

Notification on Statusbar Displayed/Selected

Post by Ra9om1ak » 23 Jan 2014 12:04

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.

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: Notification on Statusbar Displayed/Selected

Post by colabi » 23 Jan 2014 12:30

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

Ra9om1ak
Posts: 32
Joined: 06 May 2013 14:26

Re: Notification on Statusbar Displayed/Selected

Post by Ra9om1ak » 23 Jan 2014 13:07

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 ?

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: Notification on Statusbar Displayed/Selected

Post by colabi » 23 Jan 2014 13:38


Ra9om1ak
Posts: 32
Joined: 06 May 2013 14:26

Re: Notification on Statusbar Displayed/Selected

Post by Ra9om1ak » 23 Jan 2014 14:00

That's ok, I have seen that, but I am searching for some kind of list with syntax.
Thx.

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

Re: Notification on Statusbar Displayed/Selected

Post by Martin » 24 Jan 2014 09:13

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

Ra9om1ak
Posts: 32
Joined: 06 May 2013 14:26

Re: Notification on Statusbar Displayed/Selected

Post by Ra9om1ak » 28 Jan 2014 07:18

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.

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

Re: Notification on Statusbar Displayed/Selected

Post by Martin » 28 Jan 2014 18:57

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

Post Reply