SMS Random Time

Quatie

New member
I've set up macros to send Birthday SMS messages. Is there an easy way to set it up so that it picks a random time to send the message let's say between Sunrise and Sunset each year. I have tried what Jamie said but I can't get it to work, he told me to try in this forum.


Here's what he said....

T: SunRise A: Set integer variable delay to a random value between 0 - x A: Wait before next (use the integer variable value in minutes) A: Send SMS

If someone could possibly set it up if be really grateful.
 

420

Active member
Would the calendar trigger not be better? Seeing that the sunrise one will trigger every single day.. I have never used the calendar trigger myself, so i am not sure how to go about that, and you would also need a way to know which phone number to send to.. Unless you want to create a seperate macro for each person that triggers at a set date, i guess that's also an option.

Sorry after reading your post again it seems like you have already done this. (A seperate macro for each person) Screenshot_20221108-141612.png
 

Quatie

New member
Well I thought about using a Date trigger and then was hoping to get it to just pick a random time each year to send the Birthday Message, so, that it doesn't look like I've set up an automated message. Are you able to attach that Macro please?

Thanks
 

420

Active member
Well I thought about using a Date trigger and then was hoping to get it to just pick a random time each year to send the Birthday Message, so, that it doesn't look like I've set up an automated message. Are you able to attach that Macro please?

Thanks
Apart from the trigger it would look the same as the screenshot above. Something to keep in mind though is that if your phone reboots while the wait action is running/waiting it will be forgotten, in that case it would never send the sms, the same (obviously) goes for if your phone is turned off at the time the trigger fires.

If you are feeling creative you could also create an array or dictionary pre-filled with different sentences, so it can send a (somewhat) random text rather then sending the same message to everyone each year.
 

Attachments

  • Screenshot_20221108-154106.png
    Screenshot_20221108-154106.png
    131.9 KB · Views: 14

420

Active member
You could even put their age in a variable and set it to +1 every time the macro runs, allowing you to send them a text containing their actual age, might be tough creating the logic that determines whether it should (for example) be 21"st" or 15"th" though..
 

Quatie

New member
That worked thank you so much. Yeah I'd like to be able to make it so it changes the message each year, how can I go about setting it up?
 
Top