MacroDroid Forums

A forum for discussing all things MacroDroid
It is currently Mon Jun 26, 2017 2:02 pm

All times are UTC



Welcome
Welcome to macrodroid

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Awesome new complex macro! Not to shabby for my first time
PostPosted: Fri Jun 16, 2017 7:24 am 
Offline

Joined: Mon Jun 05, 2017 8:55 am
Posts: 1
What This Macro does is pretty nifty. It has 2 main parts to it. The first part is the incoming call --When someone is calling you, if you are listening to music it will pause it, then it will speak the name of who is calling, If you have headphones in it will verbally ask you if you’re going to answer. You respond verbally, Yes or No and depending on how you answer it will either answer or reject the call. If you don’t have headphones in then it will ask if you want to answer via dialog box, click yes or no and it will either answer or reject. Your music will once again start playing.
The second part is the return call. – The next time you turn your screen on, it will pause music if it is playing and if you have headphones in, you will be verbally told who called and at what time they called. Then you are asked if you want to return the phone call. You respond yes or no verbally and either the call is initiated or your home screen is launched and music restarted. If you don’t have headphones in, a dialog box is displayed telling you who & when someone called and if you want to return the call. Click either yes or no and the call will be initiated or everything is closed and your music starts again.


#1 Incoming Call

T: Call incoming {4 contacts - any, any, non, unknown}
A: Volume Change [media to max (my speak text is set to media), everything to 0)
Disable Macro (speak notifications)
for some reason interferes with speak text action
Disable Macro (who is playing -a macro that plays title and artist of song)for some reason interferes with speak text action
Set screen Timeout (never)
Media Pause (default player)

App foreground (google play music) change to your media player if needed
Or
App alive BG (google play music)
Or
Music playing

Set Macrodroid Variable {whoscallin: [call_name]}
Set Macrodroid Variable {incomingmin: [minute]}
Set Macrodroid Variable {incominghour: [hour13]}
Set Macrodroid Variable {whocallnum: [call_number]}
Wait Before Next Action (3 seconds)
Speak Text “[call_name] is calling”
If clause

Device Connectedmy Bluetooth headphone
Or
Device Connected
my other Bluetooth headphones
Wait Before Next Action (3 Seconds)
Speak Text “Are you going to answer?”
Macro Run (2: Answer call yes or no)
Else
Option Dialog (Do you want to answer?)
Wait Before Next Action (3 Seconds)
End If
If Clause

Macrodroid Variable (return answer = no)
Call Reject
Macrodroid Variable (Return answer contains [v=return answer])
Set Macrodroid Variable {missed call: true}
Macrodroid Variable (return answer = [v=return answer]
End If
If Clause
Macrodroid Variable (return answer = yes)
Set Macrodroid Variable (missed call: false)
Answer Call (Delay: 2 seconds)
End If

Wait Before Next Action (3 Seconds)
Media Play (Default Player)

Device Connected My Bluetooth headphones
Or
Device Connected
My other Bluetooth headphones
And
Not in Call

Enable Macro (Speak notifications)
Not in Call
Enable Macro (Who is playing)
Not in Call
Launch Home Screen
Not in Call
Volume Change
Set Screen Timeout (30 Seconds)

C:

#2 Answer call yes or no

T: Empty Trigger
A: Launch Clip Your Voice (Force New)
Wait Before Next Action
Kill Background Process (Clip our voice)

C:

#3 Dialog set return answer variable to Yes

T: Empty Trigger
A: Set Macrodroid Variable (return answer: yes)
Wait Before Next Action
Kill Background Process (Clip our voice)

C:

#4 Dialog set return answer variable to No

T: Empty Trigger
A: Set Macrodroid Variable (return answer: no)
Wait Before Next Action
Kill Background Process (Clip our voice)

C:

#5 Set missed call variable

T: Call Missed
A: Set Macrodroid Variable (Missed Call: true)
C:

#6 Missed/Return call notify

T: Screen on
Macrodroid Variable (Missed Call = true)
A: Disable Macro (speak notifications)for some reason interferes with speak text action
Disable Macro (who is playing){a macro that plays title and artist of song} for some reason interferes with speak text action
Set Macrodroid Variable (Missed Call: false)
Media Pause (Default Player – Google Play Music)
Wait Before Next Action (3 Seconds)
If clause

Device Connected [color=#FF40FF]my Bluetooth headphone
Or
Device Connected
my other Bluetooth headphones
Speak Text ‘[v=whoscallin] called at [v=incominghour]:[v=incomingmin]
Wait Before Next Action (3 Seconds)
Speak Text ‘Do you want to call them back?
Wait Before Next Action (3 Seconds)
Macro Run (#7 Return call yes or no)
Wait Before Next Action (10 Seconds)
Else

Option Dialog(Dialog title [v=whoscallin] called at [v=incominghour]:[v=incomingmin]!)(Dialog Msg Do you want to return their call now?)(Left button Yes)(Set drop down menu to #3 set return answer variable to yes)(Right button No)( Set drop down menu to #4 set return answer variable to No)
Wait Before Next Action (10 Seconds)
End If
If Clause

Return answer = No
Macro Run (#11 call Missed reply text)
End If
Launch Home Screen
Wait Before Next Action (3 Seconds)
If Clause
Call:[v=whocallnum]
End If
Media Play (Default Player)
Wait Before Next Action (5 Seconds)
Enable Macro (Speak notifications)

Not in Call
Enable Macro (Who is playing)
Not in Call
Set Screen Timeout (30 Seconds)
C:

#7 Return Call yes or no

T: Empty Trigger
A: Launch Clip Your Voice (Force New)
C:

#8 Return Call Variable Set to No

T: Clipboard Change =No
A: Set Macrodroid Variable (Return answer: no)
C:

#9 Return Call Variable Set to Yes

T: Empty Trigger
A: Launch Clip Your Voice (Force New)
Wait Before Next Action
Kill Background Process (Clip our voice)

C:

#10 End incoming call home screen

T: Call ended
Macrodroid Variable (return answer = no)
A: Launch Home Screen
C:

#11 Call Missed Auto reply (optional)

T: Call Missed
A: Send SMS (Phone number [v=whoscallnum]) (msg text Put your own away text here)
C:
Variables
String Variable = incominghour
String Variable = incomingmin
Boolean Variable = Missed call
String Variable = return answer
String Variable = whocallnumn
String Variable = who callin


Report this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred