Go Back   Android Forums > Android Discussion > Android Applications > Tasker

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old April 21st, 2013, 07:41 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Apr 2013
Posts: 5
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default Getting a perfect Auto-Reply task

I am trying to make an SMS auto-responder that activates on Wednesday from 1-5, and Thursday and Friday from 9-5, only sends one message per person per day, and will only give me a loud alert if the word "urgent" is entered. Can you guys steer me in the right direction?

JustinSC is offline  
Reply With Quote
sponsored links
Old April 21st, 2013, 08:55 PM   #2 (permalink)
Senior Member
 
Join Date: Jan 2012
Posts: 682
 
Device(s):
Carrier: Not Provided

Thanks: 164
Thanked 139 Times in 109 Posts
Default

That is a weird set of requirements. Seems somewhat arbitrary and convoluted, but very do-able with Tasker. I was tempted to ask what have you done so far. But I decided to type it into Tasker and export my profiles. Here they are:

Profile: Wed (392)
Day: Wed
Event: Received Text [ Type:Any Sender:* Content:* ]
Time: From 13:00 Till 17:00
Enter: ReplyTask (393)
A1: If [ %MMSRS ~ *urgent* ]
A2: Notification Volume [ Level:7 Display:Off Sound:Off ]
A3: Notify Vibrate [ Title:Urgent Sms Text: Icon:<icon> Number:0 Pattern: Priority:3 ]
A4: End If
A5: If [ %SMSRN ~ *john* ]
A6: If [ %JohnCounter > 0 ]
A7: Stop [ With Error:Off Task: ]
A8: Else
A9: Variable Add [ Name:%JohnCounter Value:1 Wrap Around:0 ]
A10: End If
A11: End If
A12: If [ %SMSRN ~ *fred* ]
A13: If [ %FredCounter > 0 ]
A14: Stop [ With Error:Off Task: ]
A15: Else
A16: Variable Add [ Name:%FredCounter Value:1 Wrap Around:0 ]
A17: End If
A18: End If
A19: Send SMS [ Number:%SMSRF Message:Sorry - you are not important to me...try again later, much later. Store In Messaging App:Off ]

Profile: ThursFri (396)
Day: Thu or Fri
Event: Received Text [ Type:Any Sender:* Content:* ]
Time: From 09:00 Till 17:00
Enter: ReplyTask (393) [SAME AS ABOVE]

Profile: CounterReset (394)
Time: From 00:00
Enter: Anon (395)
A1: Variable Set [ Name:%JohnCounter To:0 Do Maths:On Append:Off ]
A2: Variable Set [ Name:%FredCounter To:0 Do Maths:On Append:Off ]
electricpete is offline  
Reply With Quote
The Following 2 Users Say Thank You to electricpete For This Useful Post:
JemmyDucks (June 6th, 2013), JustinSC (April 23rd, 2013)
Old April 21st, 2013, 10:02 PM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Apr 2013
Posts: 5
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

This request is for my school, as I have to pay nearly constant attention, but someone back home needs a bit of help on occasion, so I need to be able to deactivate the profile. What I had done so far was an auto replier, but it ignored urgent, and I wasn't sure where to start on the once per person per day.

Thank you for your help, I'll input this and test it out.
JustinSC is offline  
Reply With Quote
Old April 21st, 2013, 10:24 PM   #4 (permalink)
New Member
Thread Author (OP)
 
Join Date: Apr 2013
Posts: 5
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

I notice you're making separate arrays based on the names John and Fred. Would there be a way to convert the contact names to text, make an array of these names, check if the name is in that array, and if it isn't, then auto reply? At midnight, this array simply gets cleared, and the process starts over.
JustinSC is offline  
Reply With Quote
Old April 21st, 2013, 10:43 PM   #5 (permalink)
Senior Member
 
Join Date: Jan 2012
Posts: 682
 
Device(s):
Carrier: Not Provided

Thanks: 164
Thanked 139 Times in 109 Posts
Default

Yes, now that you mention it, it's probably not a good approach that I used to track who called.

I think it would be better to use a string variable. Each time a call is received, check if the caller name is contained within the string variable. If not, then append the name and send the text . Clear string at midnight
electricpete is offline  
Reply With Quote
The Following User Says Thank You to electricpete For This Useful Post:
JustinSC (April 23rd, 2013)
Old April 22nd, 2013, 12:05 PM   #6 (permalink)
New Member
Thread Author (OP)
 
Join Date: Apr 2013
Posts: 5
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

It appears that Tasker doesn't want to change my notification volume. Looking online, it's apparently not just me getting this problem, as a lot of people with Jellybean are getting it. Hm.

Anyways, I can't figure this 1 text per person per day out, any suggestions? I know that when they text me, I want to get their name with %SMSRF, what next?
JustinSC is offline  
Last edited by JustinSC; April 22nd, 2013 at 04:13 PM.
Reply With Quote
Old April 22nd, 2013, 02:19 PM   #7 (permalink)
New Member
Thread Author (OP)
 
Join Date: Apr 2013
Posts: 5
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

So, as it would seem, I have found a way to handle urgent texts. When I get a text with URGENT in it, I play a sound as media, not a ringtone. So that is good, now I simply have to figure out this array situation so people don't get attacked by auto replies.
JustinSC is offline  
Reply With Quote
Old April 23rd, 2013, 08:43 PM   #8 (permalink)
Senior Member
 
Join Date: Jan 2012
Posts: 682
 
Device(s):
Carrier: Not Provided

Thanks: 164
Thanked 139 Times in 109 Posts
Default

Quote:
Originally Posted by JustinSC View Post
Anyways, I can't figure this 1 text per person per day out, any suggestions?
Below is more details on my suggestion to do this simply using string matching. It may not be the most elegant but seems straightforward to me. It is the same as my previous routine, with changes highlighted in bold

ReplyTask (393)
A1: If [ %MMSRS ~ *urgent* ]
A2: Notification Volume [ Level:7 Display:Off Sound:Off ]
A3: Notify Vibrate [ Title:Urgent Sms Text: Icon:<icon> Number:0 Pattern: Priority:3 ]
A4: End If
A5: Variable Set [ Name:%MatchString To:*%SMSRN* Do Maths:Off Append:Off ]
A6: If [ %NameList ~ %MatchString ]
<Done if repeat caller>
A7: Stop [ With Error:Off Task: ]
A8: End If
A9: Send SMS [ Number:%SMSRF Message:Sorry - you are not important to me...try again later, much later. Store In Messaging App:Off ]
<Append new name>
A10: Variable Set [ Name:%NameList To:%SMSRF Do Maths:Off Append:On ]



Profile: CounterReset (394)
Time: From 00:00 (to 00:00?)
Enter: Anon (395)
A1: Variable Set [ Name:%NameList To:BLANK Do Maths:Off Append:Off ]

Profile: Wed (392)
Day: Wed
Event: Received Text [ Type:Any Sender:* Content:* ]
Time: From 13:00 Till 17:00
Enter: ReplyTask (393) (see above)

Profile: ThursFri (396)
Day: Thu or Fri
Event: Received Text [ Type:Any Sender:* Content:* ]
Time: From 09:00 Till 17:00
Enter: ReplyTask (393) (see above)
electricpete is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Discussion > Android Applications > Tasker
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:03 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.