Here's a simple example where I'm testing this by spamming myself with texts. I tried a loop toggle but that didn't work for me.
Whenever the hotkey is pressed again I need the script to stop where it is, and if it's pressed another time restart from the beginning
Code: Select all
#MaxThreadsPerHotkey 2
CoordMode, Mouse, Screen
Return
Esc::ExitApp
F7::
Day1Run := !Day1Run
If (!Day1Run)
Return
While (Day1Run)
{
Click 100, 240
Send (phone number)
Send {tab}{tab}
Send spamming you text{Enter}
sleep 1000
Click 100, 240
Send (phone number)
Send {tab}{tab}
Send Another one lol{Enter}
sleep 1000
}
return