Add prefix to calls

marioalpha

New member
I searched a lot on how I could and did. I also did a lot of tests but I can't get what I want.

I would like to add the 4146 area code to my calls.

Screenshot_20231006_230551_MacroDroid.jpg
 
Last edited:

hsurB

Well-known member
Do it with two variables. Also you need to use ui interaction to reject the first call you're making (otherwise it won't start the second one I think).

Actions:
1. Set variable - FIRST VARIABLE - [call_number]
2. Wait 500ms
3. Ui interaction - either use X,Y to click and stop calling or identify in app, both should work.
4. Set variable - SECOND VARIABLE - 4146{v=FIRST VARIABLE}
5. Call {v=SECOND VARIABLE}
 

Dimlos

Well-known member
It's a modified version of the @Brush idea, but I think a Google phone app would work with this.
 

Attachments

  • Macro.jpg
    Macro.jpg
    562.9 KB · Views: 7
  • Prefix_Call.macro
    3.4 KB · Views: 3

hsurB

Well-known member
It's a modified version of the @Brush idea, but I think a Google phone app would work with this.

Funny how at the begining I wanted to achieve this with notification interaction as well to avoid using ui interaction but couldn't manage to make it work on my samsung. 🥲 Maybe I needed to simply run more tests 🤔
 

Dimlos

Well-known member
It worked on Samsung devices as well by using the Google phone app and setting the wait to 3 seconds.
 

marioalpha

New member
Thanks for your help, this app is amazing and worth purchasing.

Only the last action is not performed, I would like after opening the call to press a number on the keypad.

View attachment 7025
 

Attachments

  • Screenshot_20231007_083016_MacroDroid.jpg
    Screenshot_20231007_083016_MacroDroid.jpg
    483.3 KB · Views: 6
  • Prefix.macro
    4.4 KB · Views: 1
Last edited:

hsurB

Well-known member
Thanks for your help, this app is amazing and worth purchasing.

Only the last action is not performed, I would like after opening the call to press a number on the keypad.

View attachment 7025

First I'd try replacing ui interaction by identificator with X,Y.
Second option might be too short delay with wait before action and click is being performed too early
 

Dimlos

Well-known member
For Samsung phone apps, I believe the AutoInput plugin can be used to click on the keypad.
 

Attachments

  • Samsung_keypad.macro
    4.4 KB · Views: 3

marioalpha

New member
First I'd try replacing ui interaction by identificator with X,Y.
Second option might be too short delay with wait before action and click is being performed too early
Identification with x, y may not work with other apps and other devices because it would change the location
Time is enough but also increasing it does not change anything
 
Last edited:

marioalpha

New member
I am instructing you to use the Google phone app, but you seem to be using the Samsung phone app.
Before writing I also tried "Google Phone App" I don't understand how it can work, if I don't close the call as before, how could another with 4146 be opened?
 

hsurB

Well-known member
Before writing I also tried "Google Phone App" I don't understand how it can work, if I don't close the call as before, how could another with 4146 be opened?

In his macro it clicks 3rd option in notification thats received when starting and during call. 3rd options ends the call
 

marioalpha

New member
This is the macro for Samsung Android Phone App Last action use Interaction X, Y Any click ID Interaction "Dialpad_buttons_x" inserted was not performed. Try all included "Dialpad_buttons_star" and "Dialpad_buttons_pound" The only two accepted are Viewid ":" com.samsung.android.innallui: id/fourth_button " Viewid ":" com.samsung.android.innallui: id/sixth_button " But unfortunately I don't need

Prefix.jpeg


This is the macro for Google Phone App

Prefix2.jpeg

In reality I thought it was enough to insert a combination of characters to simulate the pressure of a keyboard number, example 4146 [Varphonenumber] ','*1 but obviously it did not work. In any case, I am very satisfied with this fantastic app and the support forum, purchased apps, the best money I ever often have in the app.
Both operated on my Samsung S20.
 

Attachments

  • Prefix2.macro
    4.6 KB · Views: 1
  • Prefix.macro
    4.6 KB · Views: 2

Dimlos

Well-known member
I'm a little confused as you obviously want a different behavior than the first screenshot.
Call termination seems to be working so what is it that is not working now?
Can you clarify what the problem is?
 

marioalpha

New member
In his macro it clicks 3rd option in notification thats received when starting and during call. 3rd options ends the call
Text Content in "Notification" and "Notification Interaction" is "Dialing" but my phone is in Italian 🤗, I changed the variable in "Chiamata" and now it works great :p
 

marioalpha

New member
I'm a little confused as you obviously want a different behavior than the first screenshot.
Call termination seems to be working so what is it that is not working now?
Can you clarify what the problem is?
When starting the call with 4146 you have to listen to a corporate message in various languages before the call is forwarded, this is very annoying to know the message by hear

To skip this just click any key from 0 to 9 or * #
 

marioalpha

New member
It's a modified version of the @Brush idea, but I think a Google phone app would work with this.
It's a modified version of the @Dimlos macro
I had to:
adapt it to the Italian language
inserted pause
keyboard opening
pressure of a key

I just have to test it with Android Auto
 

Attachments

  • Prefix3.jpg
    Prefix3.jpg
    472.7 KB · Views: 6
  • Prefix3.macro
    5 KB · Views: 0
Top