Use Tasker to forward sms to non specified number

41 views
Skip to first unread message

Hassanuddin Kasim

unread,
Mar 29, 2015, 12:01:10 AM3/29/15
to tas...@googlegroups.com
Hi I have a question

How to forward sms using Tasker to non specified number?

Example when I have 2 phone

Phone 1 send sms to phone 2 a text containing '0754577 test only'
Phone 2 then automatically forward sms to 0754577 (which is a phone number) a text 'test only'

Benjamin Caldwell

unread,
Mar 29, 2015, 12:39:24 AM3/29/15
to tas...@googlegroups.com

Profile: 'Profile Name' (98)
Event: Received Text [ Type:Any Sender:* Content:* ]
Enter: 'Task Name' (100)
A1: Variable Section [ Name:%SMSRB From:1 Length:7 Adapt To Fit:On Store Result In:%A_phone_number ]
A2: Variable Section [ Name:%SMSRB From:9 Length:100 Adapt To Fit:On Store Result In:%Message_to_be_forwarded ]
A3: Flash [ Text:A_phone_number: %A_phone_number

Message_to_be_forwarded: %The_Message Long:On ]
A4: [X] Send SMS [ Number:%A_phone_number Message:%Message_to_be_forwarded Store In Messaging App:Off ]

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

orgkampung.wordpress

unread,
Mar 29, 2015, 7:16:48 AM3/29/15
to tas...@googlegroups.com

Thanks for the quick respond, it work perfectly (with a few modification on personal needs)

Profile: 'Profile Name' (98)
Event: Received Text [ Type:Any Sender:* Content:* ]
Enter: 'Task Name' (100)
A1: Variable Section [ Name:%SMSRB From:1 Length:7 Adapt To Fit:On Store Result In:%A_phone_number ] 
A2: Variable Section [ Name:%SMSRB From:9 Length:100 Adapt To Fit:On Store Result In:%Message_to_be_forwarded ] 

A3: Flash -  removed
A4: Send SMS [Number:%A_phone_number Message:%Message_to_be_forwarded]

But how to change the sms received on phone 2 mark as 'read'

You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/7xlqs2pGgXA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Benjamin Caldwell

unread,
Mar 29, 2015, 9:34:03 AM3/29/15
to tas...@googlegroups.com

You could try adding something like this to your task:

A5: Launch App [ App:Messages Data: Exclude From Recent Apps:Off ]
A6: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A7: Kill App [ App:Messages Use Root:On ]

orgkampung.wordpress

unread,
Mar 31, 2015, 4:29:38 AM3/31/15
to tas...@googlegroups.com

Thanks, but the last action I change it to go to home screen since my phone is not rooted.

However some of the message are not being forwarded. Maybe the A2 %Message_to_be_forwarded length is 100.
How to change the text limit more than 100? Especially when some text message are very long.

Benjamin Caldwell

unread,
Mar 31, 2015, 8:33:56 AM3/31/15
to tas...@googlegroups.com

Are you able to change the format of the originating text message?

'0754577 test only' to '0754577<#>test only'

If so, then the Variable Split action (instead of Variable Section) will work much better for you.

Split Text Number/Message (17)
A1: Flash [ Text:%SMSRB Long:On ]
A2: Variable Split [ Name:%SMSRB Splitter:<#> Delete Base:Off ]
<Number to be forwarded too is contained in %SMSRB1>
A3: Flash [ Text:%SMSRB1 Long:On ]
<Long message to be forwarded is contained in %SMSRB2>
A4: Flash [ Text:%SMSRB2 Long:On ]

Reply all
Reply to author
Forward
0 new messages