Hey im trying to make a script where i press 1 button and it starts spamming and automatically loops endlessly. I also want a button to stop this script and a button to resume the script.
Heres what i have so far
F1::
Loop,
{
Send, EXAMPLE MESSAGE {enter}
}
F2::pause
The problem is i cant pause the script.
Also when i exit the script my shift key is permanently pressed and i have to press it again to undo this.
Any problems with my script above?
Need help with loop command (for spamming) Topic is solved
-
- Posts: 2
- Joined: 15 Jul 2018, 23:53
Re: Need help with loop command (for spamming) Topic is solved
Hallo,
try:
try:
Code: Select all
F1 Up::SetTimer SendEXAMPLE,% (Toggle := !Toggle) ? 0:"Off"
SendEXAMPLE: ;F1 Up starts and stops spamming
Send, EXAMPLE MESSAGE {enter}
Return
F2 Up::Pause ;F2 Up pauses and resumes the script
-
- Posts: 2
- Joined: 15 Jul 2018, 23:53
Re: Need help with loop command (for spamming)
thank you this is great! big thanks!!!!!