Only mobile phone call allow + turn off macro

karol32

New member
Hello. I have little trouble with macro.

I need to allow only mobile phone calls and other phone calls (as area calls), nothing to do.
+
If mobile phone call i need to turn off other macro (i have macro that sending messages to phone calls and i dont want to send sms'messages to area calls).
So this macro shoudl turn off my sms sending maacro.

Someone can tell me how to.
 

Jacob L

Moderator (Lawsonator)
Save the incoming number to a variable and use IF statements to determine what to do.
 

karol32

New member
Thank you for the replay. It not so easy.. point is to make a good call-numbers filter.
Im not the programmer so i did (edited) some macro of area number filter that disabling my other macros.
So the area code is (58) or (+58)+7(numbers of phone number). Pity i can not try it if it work well, i need to wait now for call like that.

Different and better way is:

The mobile phone call number in my country have 9 numbers totall but it can be also with area code when is comming: (+48)+9(numbers of phone number)
The best macro shoudl allow only mobile-phone-calls... Its briliant way but too hard for me. It shoudl allow other macros only if calling come from mobile phone number (9 numbers for shure + additional area code +48 [sometimes with spaces for example +48 123 456 789])

Else (if number less or more then 9 numbers+area code) the macro will cancel other macros

Im too moron of programming to do it
 

Attachments

  • 313512266_608058997734000_5173483400069375115_n.jpg
    313512266_608058997734000_5173483400069375115_n.jpg
    133.6 KB · Views: 8
  • 313862804_653098999807766_7095486775110878670_n.jpg
    313862804_653098999807766_7095486775110878670_n.jpg
    153.8 KB · Views: 8
Last edited:

FrameXX

Well-known member
So to make it clear. You have some macros that react on incoming call, but you want them to react only on calls that are coming from mobile phone or local calls or what? I have hard time understanding what calls you want your macros to react on and what not. Give a clear examples of phone number you want and not want your macros to react on.

When it comes to constraining the macros to a specific type of phone numbers I recommend you to do it directly inside these macros, instead of making an extra macro that disables thse macros.
 

karol32

New member
Save the incoming number to a variable and use IF statements to determine what to do.
I tryed this way but dont know if im doing it well.

Set the phone call number to variable named call_number, then i want to substrate the 4 numbers from variable and save to temporary (temp), then check i numbers in temporary is as declarated const values- if yes- then cancel other macros or -if not- clear the temporary.
 

Attachments

  • Screenshot_20221107_185028_com.arlosoft.macrodroid.jpg
    Screenshot_20221107_185028_com.arlosoft.macrodroid.jpg
    300.4 KB · Views: 4
  • Screenshot_20221107_184915_com.arlosoft.macrodroid.jpg
    Screenshot_20221107_184915_com.arlosoft.macrodroid.jpg
    457.1 KB · Views: 4

karol32

New member
So to make it clear. You have some macros that react on incoming call, but you want them to react only on calls that are coming from mobile phone or local calls or what? I have hard time understanding what calls you want your macros to react on and what not. Give a clear examples of phone number you want and not want your macros to react on.

When it comes to constraining the macros to a specific type of phone numbers I recommend you to do it directly inside these macros, instead of making an extra macro that disables thse macros.
Thank you for Your time. I want to create macro which reacting only with mobile phone calls (this macro will turn off my other macros when calling number is not mobile phone number).
Mobile phone numbers looks like that:
123456789 or +48123456789 or +48 123 456 789.
Other phone calls (not mobile numbers) are look like that: +48581234567 or 581234567 or +49123456789 or +49...


So i think that is good solution to make the another macro that reacting only with mobile phone calls and as 'else' function (other) phone calls will disable my other macros that reacting with every phone calls
So this macro will allow mobile phone call, and not allow to start other macros when phone call is not mobile number
 
Top