Need help with loop command (for spamming) Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
cookedsashimi
Posts: 2
Joined: 15 Jul 2018, 23:53

Need help with loop command (for spamming)

16 Jul 2018, 00:07

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?
Rohwedder
Posts: 7669
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Need help with loop command (for spamming)  Topic is solved

16 Jul 2018, 07:52

Hallo,
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
cookedsashimi
Posts: 2
Joined: 15 Jul 2018, 23:53

Re: Need help with loop command (for spamming)

21 Jul 2018, 16:01

thank you this is great! big thanks!!!!!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Aqualest, OrangeCat and 399 guests