Toggle rapidly press G

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Pounc3r
Posts: 5
Joined: 06 Apr 2018, 04:05

Toggle rapidly press G

06 Apr 2018, 04:12

I found something like this in the forum archives but couldnt modify it to work as i wanted.
can someone script a toggleable "G" spammer, and the key for activation, G itself. (if thats not possible then numpad 0)
delay 40ms if possible
THEjuozasXD

Re: Toggle rapidly press G

06 Apr 2018, 04:43

Something like this:

Code: Select all

#NoEnv
#MaxThreadsperHotkey 2
toggle := False
looping := False
numpad0::
if (toggle) {
	toggle := False
	GetKeyState, state, numpad0
	while (state = "D") {
		GetKeyState, state, numpad0
	}
	return
} else if (looping) {
	toggle := False
	GetKeyState, state, numpad0
	while (state = "D") {
		GetKeyState, state, numpad0
	}
	return
} else {
	toggle := True
	GetKeyState, state, numpad0
	while (state = "D") {
		GetKeyState, state, numpad0
	}
}
while (toggle) {
	looping := True
	sendinput {g}
}
looping := False
return
donovv
Posts: 108
Joined: 15 Apr 2017, 21:06

Re: Toggle rapidly press G

06 Apr 2018, 16:10

Code: Select all

#maxthreadsperhotkey 2
$g::
	toggle := !toggle
		while toggle
			{
				send g
				sleep 40
			}
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 288 guests