Auto respond with text message to missed calls when missed calls are cleared.

355 views
Skip to first unread message

Dave

unread,
Apr 1, 2011, 2:38:12 AM4/1/11
to Tasker
I'm trying to get Tasker to do this, I'm pretty new to the
programming, but I understand the variables, etc. The script will do
the following things:

When I'm sleeping, busy, or just don't want to take calls, It sends a
text to the person as soon as they hang up telling them that. This
part works.

Here's the problem:

I have a script that runs when I clear the missed calls/ alerts bar.
It's supposed to send a text to everyone I missed a call from, but it
only does it on the last call, and not the ones before it. I have an
action set to record the time in a variable, and set so that if the
time in the variable is less than the actual time, I want it to text
all the callers between those 2 times. I've tried everything,
including having it append the number to a text file, then calling the
text file, and reading it to a variable, and it does not work. Any
ideas?

Pent

unread,
Apr 1, 2011, 9:20:27 AM4/1/11
to Tasker
> I have a script that runs when I clear the missed calls/ alerts bar.
> It's supposed to send a text to everyone I missed a call from, but it
> only does it on the last call, and not the ones before it. I have an
> action set to record the time in a variable, and set so that if the
> time in the variable is less than the actual time, I want it to text
> all the callers between those 2 times. I've tried everything,
> including having it append the number to a text file, then calling the
> text file, and reading it to a variable, and it does not work. Any
> ideas?

Could you export your relevant profile(s) here ?

Click profile, properties button, export, description to clipboard.

Pent

Dave

unread,
Apr 1, 2011, 6:46:11 PM4/1/11
to Tasker
Profile: Missed Call (14)
State: Missed Call
Enter: Anon (15)
A1: Send SMS [ Number:%CNUM Message:Sorry I'm not available right
now, my phone will text you when I'm available. Store In Messaging
App:On ] If [ %DND ~ 1 ]
A2: Write File [ File:Missed.txt Text:%CNUM, Append:On ]

Exit: Anon (18)
A1: End If If [ %DND ! Set ]
A2: Read Line [ File:Missed.txt Line: To Var:%MISSEDNUM ]
A3: Send SMS [ Number:%MISSEDNUM Message:I'm available now. Store In
Messaging App:On ] If [ %BUSYTM < %TIME ]
A4: Variable Clear [ Name:%BUSYTM ] If [ %DND ! Set ]
A5: Variable Clear [ Name:%MISSED ]
A6: Write File [ File:Missed.txt Text: Append:Off ]

Pent

unread,
Apr 2, 2011, 5:12:11 AM4/2/11
to Tasker
State missed call will only go active the first time you miss a call,
until you clear the calls. You should use Event missed call, which
fires each time you miss a call.

However, you want to send the 'available now' texts when all calls are
cleared, so you've attached that to the correct context as it stands
(exit task of state missed call).

In sum:

Event: Missed Call
Enter Task: 'not availableable SMS'

State: Missed Call
EXIT Task: 'available now SMSs'

Second thing:

> Messaging App:On ] If [ %BUSYTM < %TIME ]

You may be using this incorrectly. You're comparing mathematically
something like '3.15' and '17.15'. Remember, after 23.99, %TIME will
become 0.00. Depending on what you want to achieve with the
comparison, you may be better using %TIMES (see varaible section of
userguide).

Pent
Reply all
Reply to author
Forward
0 new messages