Notification text variable?

1,138 views
Skip to first unread message

Ryan Wilson

unread,
Mar 10, 2014, 4:24:11 AM3/10/14
to tas...@googlegroups.com
Is there a variable for the text that is in a notification? I want to put the text into another task. The Notification variable does work for me? Any suggestions?

Matt R

unread,
Mar 10, 2014, 10:57:46 AM3/10/14
to tas...@googlegroups.com
%NTITLE is the notification text variable. You can also use the %evtprm() variable in a event -> UI -> notification context.

Matt

Ryan Wilson

unread,
Mar 10, 2014, 1:06:03 PM3/10/14
to tas...@googlegroups.com
Ok I'm not getting that to work. It puts another notification text there. It looks like it putts the most resent notification text there I would like it to put a certain notification text there and update if I get another message from that notification

I'm currently using auto remote to send certain message to my Nexus 7. Which creates a notification. When I receive this notification I get a pop up to reply, or in the notification I have a reply button which then gives my that pop up. Now I want to put the text in my pop up so I don't have to pull down the notification panel just to read the text.

Matt R

unread,
Mar 10, 2014, 2:27:33 PM3/10/14
to tas...@googlegroups.com
Store it in your own global variable when it is updated by whatever notification you care about.

Matt

Ryan Wilson

unread,
Mar 10, 2014, 9:05:43 PM3/10/14
to tas...@googlegroups.com
U think I tried that didn't seem to work. Not sure if I'm doing title right tho.

Bob Hansen

unread,
Mar 10, 2014, 9:27:25 PM3/10/14
to tas...@googlegroups.com
Post your profile so we can review it. Long press the profile name to select it. Then Menu > Export > Description to clipboard (not XML). Paste into a post. 

Ryan Wilson

unread,
Mar 12, 2014, 9:59:21 PM3/12/14
to tas...@googlegroups.com
Sorry took so long!

But this is what I got!

Profile: Text Query To S4! (76)
State: AutoRemote [ Configuration:sendsms=:= ]
Enter: Text Back To S4! (77)
A1: Variable Query [ Title:%NTITLE Variable:%NEXUSSMS Input Type:Normal Text Default: Background Image: Layout:Variable Query Timeout (Seconds):40 Show Over Keyguard:On ]
A2: AutoRemote Message [ Configuration:Recipient: Galaxy S4
Message: %armessage=:=%NEXUSSMS Package:com.joaomgcd.autoremote Name:AutoRemote Message Timeout (Seconds):0 ]

The thing is when I put %NTITLE in the title it will put the latest notification text in but I only want the one from certain notification!

Bob Hansen

unread,
Mar 12, 2014, 10:14:41 PM3/12/14
to tas...@googlegroups.com
If I understand what you want then you need to make the Text Back To S4! task conditional


Enter: Text Back To S4! (77)
        A1: Stop If %NTITLE !~ <the NTITLE of the one you want>  <== !~ means "doesn't match"
        A2: Variable Query [ Title:%NTITLE Variable:%NEXUSSMS Input Type:Normal Text Default: Background Image: Layout:Variable Query Timeout (Seconds):40 Show Over Keyguard:On ] 
        A3: AutoRemote Message [ Configuration:Recipient: Galaxy S4

Message: %armessage=:=%NEXUSSMS Package:com.joaomgcd.autoremote Name:AutoRemote Message Timeout (Seconds):0 ]

So, if you put the name of the NTITLE you want on the right side of the If statement, it will only send the message when the desired NTITLE is received.

Hope I understood what you wanted.

Ryan Wilson

unread,
Mar 13, 2014, 12:22:45 AM3/13/14
to tas...@googlegroups.com
Ok I tried this and when I do this it seems to stop the message everytime. What I did was

Stop if %NTITLE!~ Message from (Message from is the actual notification title. I want the text which NTITLE does that but it even does the text of other apps.


But there is a variable that puts the number or name of a contact after the from. Not sure if that could cause it to stop.


Bob Hansen

unread,
Mar 13, 2014, 12:30:24 AM3/13/14
to tas...@googlegroups.com
It is hard to understand exactly what the %NTITLE text is.

Try:
Stop if %NTITLE!~ Message from*  

If that doesn't work then post an example of an actual message. 

Ryan Wilson

unread,
Mar 13, 2014, 1:21:43 AM3/13/14
to tas...@googlegroups.com
Yea I understand.
Anyways when I get a Text on my phone it creates a autoremote notification that goes to my Nexus.

Now in the notification tile it will say Message from 1234567896 (or the contact name if it's in my contacts)
In my text field of the notification it will display the message or text from that person or number. Now the NTITLE variable works to get the text in the notification but if I get another notification it will replace the text with the text of the new message. Even if I got a email notification. I o lyrics want it to replace it from notifications has that title of message from.


Very sorry of I'm confusing. I really appreciate the help!

Matt R

unread,
Mar 13, 2014, 1:57:55 AM3/13/14
to tas...@googlegroups.com
Use the event parameter variables (%evtprm). You can learn more in the event section of the user guide.

Matt

Ryan Wilson

unread,
Mar 13, 2014, 7:12:19 PM3/13/14
to tas...@googlegroups.com
Yea defiantly don't understand that stuff.

Matt R

unread,
Mar 13, 2014, 8:17:44 PM3/13/14
to tas...@googlegroups.com
You shouldn't be defiant toward knowledge.  :-P

Matt

Ryan Wilson

unread,
Mar 13, 2014, 11:38:18 PM3/13/14
to tas...@googlegroups.com
Oh I'm not just saying it's alittle confusing. Trying to figure it out but not sure if I'm understanding it like I should. Sorry

Matt R

unread,
Mar 14, 2014, 12:51:04 AM3/14/14
to tas...@googlegroups.com
Make the first action alert -> flash %evtprm(). Should become a little more clear.

Matt

Ryan Wilson

unread,
Mar 15, 2014, 6:17:15 PM3/15/14
to tas...@googlegroups.com
I tried this and it seem to stop the rest of the task.

Ryan Wilson

unread,
Mar 15, 2014, 6:17:15 PM3/15/14
to tas...@googlegroups.com

Matt R

unread,
Mar 15, 2014, 6:36:14 PM3/15/14
to tas...@googlegroups.com
There is no way a flash action stopped the task. Enable and then check the run log for errors (menu -> more -> run log).

Matt

Ryan Wilson

unread,
Mar 17, 2014, 11:49:11 PM3/17/14
to tas...@googlegroups.com
I'm alittle lost been reading and testing but not sure if I'm doing this right! I put flash %evtprm(Message from ) but not sure if I'm doing this right! Also don't seem execute the rest of the task..

Matt R

unread,
Mar 18, 2014, 12:22:22 AM3/18/14
to tas...@googlegroups.com
Why did you put "message from" in the parentheses of %evtprm?

Matt

Ryan Wilson

unread,
Mar 18, 2014, 1:25:12 AM3/18/14
to tas...@googlegroups.com
I thought that's what I would do if I wanted to get only the message from that specific message.

Matt R

unread,
Mar 18, 2014, 2:00:32 AM3/18/14
to tas...@googlegroups.com
Instead, flash %evtprm() as stated above.

Matt

Ryan Wilson

unread,
Mar 18, 2014, 10:40:08 AM3/18/14
to tas...@googlegroups.com
I did that and I got nothing but a blank flash action. I'm going to retry when I get a chance

Matt R

unread,
Mar 18, 2014, 3:03:03 PM3/18/14
to tas...@googlegroups.com
It has to be an event profile, like Event -> UI -> Notification.  See the Event section of the user guide.

Matt

Ryan Wilson

unread,
Mar 22, 2014, 1:58:29 AM3/22/14
to tas...@googlegroups.com
Ok now I've been doing some ready and some testing but I'm alittle confused how this parameter thing works..

joaomgcd

unread,
Mar 22, 2014, 1:57:18 PM3/22/14
to tas...@googlegroups.com
You may want to try AutoNotification. :) See it in action here: https://www.youtube.com/watch?v=ZyYAtL3cEjA&list=UUoqOfPUy_rViHR0lJfInLyQ

On Monday, March 10, 2014 8:24:11 AM UTC, Ryan Wilson wrote:
Is there a variable for the text that is in a notification?  I want to put the text into another task. The Notification variable does work for me? Any suggestions?

Ryan Wilson

unread,
Apr 6, 2014, 2:47:09 AM4/6/14
to tas...@googlegroups.com
Ok if I'm not sure I'm understanding this! I'm using autoremote not autonotifcation!
Reply all
Reply to author
Forward
0 new messages