Page 1 of 1

How To: Spamkey While pressing it

Posted: 20 May 2017, 08:25
by Gocha
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

Re: How To: Spamkey While pressing it

Posted: 20 May 2017, 11:09
by neomulemi6

Code: Select all

q::
While (GetKeyState("q", "p"))
	Send q
Return

Re: How To: Spamkey While pressing it

Posted: 20 May 2017, 12:28
by Gocha
Not working :c

Re: How To: Spamkey While pressing it

Posted: 20 May 2017, 21:10
by neomulemi6
Whoops, sorry. I forgot the $ prefix.

Code: Select all

$q::
While (GetKeyState("q", "p"))
	Send q
Return

Re: How To: Spamkey While pressing it

Posted: 21 May 2017, 05:44
by Gocha
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:

Re: How To: Spamkey While pressing it

Posted: 21 May 2017, 06:53
by neomulemi6
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

Re: How To: Spamkey While pressing it

Posted: 21 May 2017, 12:04
by Gocha
ty :D