Create a macro to call, wait for 40 seconds make a selection

Nefario

New member
Hi, I am very new to this so hello to everybody and apologies if I am posting the question on the wrong forum or if the question is basic.
Last night I tried to use the app but I couldn't work it out how to call a number, wait for 40 seconds and make a selection.
The back ground story is that sometimes I need to call the hospital and this particular number has a sort of answer machine which ask you to make a selection. The message last 35-40 seconds after which I want to press/select an option, in my case I need to press 1. After that it the call will automatically finish.
So I would like to create a macro that call the number, wait 40 seconds, select option 1 (keypad #1) and if possible repeat this macro 3 times (loop)

Thank you all in advance
 

hsurB

Well-known member
I'd try something like this and test it calling my other number or something to see if it works/what has to be changed

Repeat actions - Fixed number - 3 times:
Make call - number
Wait before next action (40s)
UI Interaction - Click - Either you find x,y using developer's settings in your phone - pointer location or you could try clicking by text '1' (I am not sure if it works on android 14).
Wait before next action (5s)
Call reject (if call won't end by itself)
Wait before next action (before runing loop again in this case) - few seconds.
 

hsurB

Well-known member
Forgot but you will probably need 2 ui interactions to perform 2 clicks, first to open keyboard and second to click the number with wait before next action between them
 

Nefario

New member
yes, I did guess needed 2... as unfortunately the simpler option text '1' is not working
Sorry ... How do I define / find x, y?
Thank you again

-> I have just google it and the answer was easier than what I though
On the Phone Go to
  • Settings
  • Developers Options
  • In Input section check Show Pointer Location option.
 
Last edited:

hsurB

Well-known member
You search how to enable developers settings in your phone (on the internet) and you find option to enable pointer location. It will show you overlay at the top of your screen showing info about each click (its all safe)
I've just tried and ui interaction opened keyboard during call on android 14, so I am guessing clicking nunber shouldn't be a problem too.
Or you install macrodroid helper and during configuring action there is option to toggle touch location overlay
 

Nefario

New member
for some reason the UI is not working properly (probably because of me) I have entered the coordinates, I am looking at the screen and is not selecting the keypad instead puts the first call on hold and then start a second call :unsure:
 
Last edited:

hsurB

Well-known member
Well. For now you can just test it without loop and starting next call until you make sure ui interaction works.
You could enable screen recording with touch info overlay enabled and run macro to watch it in slowmo to see where exactly macro clicks and what happens.
Also make sure you enabled all needed accessibility permissions for macrodroid. Otherwise it won't be able to perform clicks
 

Nefario

New member
Thanks again for your suggestion I was looking into the accessibility permissions for macrodroid but I didn't think of disabling the loop, which is a good suggestion for step building blocks to troubleshot. Cheers
 

Nefario

New member
disabled the loop, checked under my Nokia XR20 phone settings - accessibility and MacroDroid UI Interaction is ON. Reboot the phone, the macro still ignoring both UI Interaction Clicks
;-(
 

mapriex

Active member
disabled the loop, checked under my Nokia XR20 phone settings - accessibility and MacroDroid UI Interaction is ON. Reboot the phone, the macro still ignoring both UI Interaction Clicks
;-(
for some reason the UI is not working properly (probably because of me) I have entered the coordinates

check the logfile at the certain time you did the action. there you can see if the UI interaction clicks were counted or not. Also you see the process-line of your macro to determine, why it doesn't come to the UI clicks.

When you have some results you can try to correct it by yourself or you can ask a more precise question to solve your problem step by step. with that we can find the missing part of your macro easier.
 

Nefario

New member
Hi, thank you for your suggestions and apologies again for my ignorance of this product, under system log I can see the actions but there is not much more than that. Thanks again
 
Top