I need help fixing a script

Get help with using AutoHotkey and its commands and hotkeys
RYANNNN

I need help fixing a script

18 Jun 2018, 19:18

I have the script mostly right i just need it so when i Press F5 it stops spamming J

F4::
loop, 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

send j

Sleep 20

reload

F5::
reload
return
Rohwedder
Posts: 3516
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: I need help fixing a script

19 Jun 2018, 09:09

Hallo,
try this:

Code: Select all

F4::
Loop
{
	send j
	Sleep 20
}
F5::Reload
or that:

Code: Select all

F4::SetTimer, SendJ, 20
SendJ:
	send j
Return
F5::SetTimer, SendJ, Off
neomulemi6
Posts: 216
Joined: 30 Jun 2016, 06:01

Re: I need help fixing a script

19 Jun 2018, 14:47

Rottweiler's scripts will work, but you could also try this, and just toggle it on/off with the same key:

Code: Select all

#MaxThreadsPerHotkey, 3
F4::
Toggle := !Toggle
Loop
{
	If (!Toggle)
		Break
	Send j
	Sleep 20
}
Return

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], boiler, fliptoback, Google [Bot], lmstearn, mikeyww, TallgeeseIV and 40 guests