How To: Spamkey While pressing it

Ask gaming related questions (AHK v1.1 and older)
Gocha
Posts: 4
Joined: 20 May 2017, 08:19

How To: Spamkey While pressing it

20 May 2017, 08:25

How to make spam macro with these keys: Q,W,E

i got spam macro for LButton And i want something like this to keys: Q,W,E
Can somebody help me ?
This is a LButton Spam macro

LButton::
Loop
{
SetMouseDelay 24
Click
If (GetKeyState("LButton","P")=0)
Break
}

I want something like this but with keys
neomulemi6
Posts: 216
Joined: 30 Jun 2016, 06:01

Re: How To: Spamkey While pressing it

20 May 2017, 11:09

Code: Select all

q::
While (GetKeyState("q", "p"))
	Send q
Return
Gocha
Posts: 4
Joined: 20 May 2017, 08:19

Re: How To: Spamkey While pressing it

20 May 2017, 12:28

Not working :c
neomulemi6
Posts: 216
Joined: 30 Jun 2016, 06:01

Re: How To: Spamkey While pressing it

20 May 2017, 21:10

Whoops, sorry. I forgot the $ prefix.

Code: Select all

$q::
While (GetKeyState("q", "p"))
	Send q
Return
Gocha
Posts: 4
Joined: 20 May 2017, 08:19

Re: How To: Spamkey While pressing it

21 May 2017, 05:44

Really good But, How to slow it down?
I want to klick it 15/30 times per secound, If i can help me i will be very happy L:
neomulemi6
Posts: 216
Joined: 30 Jun 2016, 06:01

Re: How To: Spamkey While pressing it

21 May 2017, 06:53

You can replace the 100 with whatever you want. It goes by milliseconds, and there's 1000 milliseconds in a second, so Sleep 1000 would click once per second.

Code: Select all

$q::
While (GetKeyState("q", "p"))
{
	Send q
	Sleep 100
}
Return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 88 guests