send sms to phone numbers from a txt list

Dm114

Well-known member
Ok, so i replaced the action and now i have the following but nothing happens when i test the macro.
View attachment 787
Could you run it and show the content of your local variables (not the whole one but at least the beginning of the values)?

As well as a screenshot of the beginning of your text file, please.
 
Last edited:

420

Active member
Ok, so i replaced the action and now i have the following but nothing happens when i test the macro.

View attachment 787
I think the constraint on the loop should be variable "OriginalListOfNumbers" is not empty, instead of variable "CurrentNumber" not being empty, and it also seems to me that the text manipulation actions need to be changed, now that the NumbersToWriteTo variable is no longer being used... but maybe it's best to wait for Dm144 to reply, since he created this and knows exactly what it's doing.

edit: he already replied :p
 

valhala

New member
Could you run it and show the content of your local variables (not the whole one but at least the beginning of the values)?

As well as a screenshot of the beginning of your text file, please.
my text file is this
 

Attachments

  • testmacro.txt
    25 bytes · Views: 6

Dm114

Well-known member
@Dm114 & @420
please let me know if you need anything else.

Sorry, it's my fault. I made a mistake when I told you to replace the first action by the script shell instead of adding it as the first line. This action is to populate the variable 'OriginalListOfNumbers'
 

valhala

New member
Sorry, it's my fault. I made a mistake when I told you to replace the first action by the script shell instead of adding it as the first line. This action is to populate the variable 'OriginalListOfNumbers'
No worries.
Right now it's sending the message "Fixed text to selected fixed numbers.."
Where can i replace this because i cannot find this text in macro? Also, is it possible to get this message also from file text message? I am thinking it is easier for me to replace it in a text file.
 

Dm114

Well-known member
As it is now possible to read a text file, the variable 'OriginalListOfNumbers' becomes useless. So, you can replace it by 'NumbersToWriteTo' in the script shell and remove or disable (or not add again) the 'Set Variable' action (1st line in the original macro). If you remove this line (instead of disabling it) you can delete the local variable 'OriginalListOfNumbers'.
 

420

Active member
No worries.
Right now it's sending the message "Fixed text to selected fixed numbers.."
Where can i replace this because i cannot find this text in macro? Also, is it possible to get this message also from file text message? I am thinking it is easier for me to replace it in a text file.
it's a local variable, just go into the macro click "Local variables" at the bottom and they will pop up.

then you just click on the one named "TextToSend" and click "edit value" and set it to whatever you want.
 

valhala

New member
As it is now possible to read a text file, the variable 'OriginalListOfNumbers' becomes useless. So, you can replace it by 'NumbersToWriteTo' in the script shell and remove or disable (or not add again) the 'Set Variable' action (1st line in the original macro). If you remove this line (instead of disabling it) you can delete the local variable 'OriginalListOfNumbers'.
I like it how you treat me like i am your equal. :)) all jokes aside, i am too afraid to modify something, i don't want to make a mistake. If it's working i am happy. That is what happens when you have limited knowledge. :)
 

valhala

New member
it's a local variable, just go into the macro click "Local variables" at the bottom and they will pop up.

then you just click on the one named "TextToSend" and click "edit value" and set it to whatever you want.
With the risk of premature happiness.. Wow. you are f*cking awesome. IT WORKS. YOU ROCK Dm114 ! YOU ROCK 420 ! You ROCK Jacob L! MACRODROID ROCKS! Thank you guys!
 
Last edited:

Dm114

Well-known member
No worries.
Right now it's sending the message "Fixed text to selected fixed numbers.."
Where can i replace this because i cannot find this text in macro? Also, is it possible to get this message also from file text message? I am thinking it is easier for me to replace it in a text file.
Here you have the last version according to your needs...
 

Attachments

  • Tst.macro
    7.4 KB · Views: 11
Top