Spam F6 key Topic is solved

Ask gaming related questions (AHK v1.1 and older)
elmightyo

Spam F6 key  Topic is solved

19 Oct 2017, 18:18

so i searched a lot but i couldn't find what i wanted.
I want a script that can spam the F6 key

I tried this but it didnt work.

Code: Select all

$w::
loop, 100
{
send {F6}
sleep 0
}
return
This should when i press w it will spam F6 button
but in my game its not doing that...
i did open with administrator same
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: Spam F6 key

20 Oct 2017, 06:10

You are pressing the keys too fast.
No game can recognize 1000 keypresses a second, unless maybe if it is running at 1000 FPS

Add SetKeyDelay, 0, 50 to the start of your script. Remove the Sleep 0
You may actually need SetKeyDelay, 50, 50
User avatar
Reloaded
Posts: 283
Joined: 25 Aug 2017, 08:48

Re: Spam F6 key

20 Oct 2017, 06:46

elmightyo wrote:so i searched a lot but i couldn't find what i wanted.
I want a script that can spam the F6 key

I tried this but it didnt work.

Code: Select all

$w::
loop, 100
{
send {F6}
sleep 0
}
return
This should when i press w it will spam F6 button
but in my game its not doing that...
i did open with administrator same

Code: Select all

#MaxThreadsperHotkey 2
$w::		
toggle := !Toggle
loop
{
if toggle
{
Send, {F6}
Sleep, 10		
}

else
	break
}
return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Stpham and 67 guests