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.
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.
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 ]
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.
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 ]