Simple "hold to spam attacks" AHK script

12/20/2011 13:03 GerorgeG#1
I have allways used this in mmos to get rid of the button mashing, it's a really simple script that allows you to hold any hotkey (1-9) and it will spam that key until you release it.
You toggle it on and off with numlock.

Code:
; Simple key spam script by Winsane.
; Toggle on and off with numlock.

~NumLock::Suspend, Toggle

*1::
Loop
{
GetKeyState, state, 1, p
if state = U
break
; Otherwise:
Send, {1}
Sleep, 25
}

*2::
Loop
{
GetKeyState, state, 2, p
if state = U
break
; Otherwise:
Send, {2}
Sleep, 25
}

*3::
Loop
{
GetKeyState, state, 3, p
if state = U
break
; Otherwise:
Send, {3}
Sleep, 25
}

*4::
Loop
{
GetKeyState, state, 4, p
if state = U
break
; Otherwise:
Send, {4}
Sleep, 25
}

*5::
Loop
{
GetKeyState, state, 5, p
if state = U
break
; Otherwise:
Send, {5}
Sleep, 25
}

*6::
Loop
{
GetKeyState, state, 6, p
if state = U
break
; Otherwise:
Send, {6}
Sleep, 25
}

*7::
Loop
{
GetKeyState, state, 7, p
if state = U
break
; Otherwise:
Send, {7}
Sleep, 25
}

*8::
Loop
{
GetKeyState, state, 8, p
if state = U
break
; Otherwise:
Send, {8}
Sleep, 25
}

*9::
Loop
{
GetKeyState, state, 9, p
if state = U
break
; Otherwise:
Send, {9}
Sleep, 25
}
12/23/2011 05:16 tekmo#2
how do u use this?

nvm.. i figured it out :)

thnks111
12/23/2011 19:30 Swotoored#3
I have yet to be able to get any AHK script to work with swotor, is your experience different?

Edit solved: Window + Admin
12/25/2011 22:41 olli2k8#4
Quote:
Originally Posted by Swotoored View Post
I have yet to be able to get any AHK script to work with swotor, is your experience different?

Edit solved: Window + Admin
window + admin???? what do you mean?
12/26/2011 05:20 tekmo#5
run windows mode + run as admin.
12/26/2011 05:20 tekmo#6
run windows mode + run as admin.
01/01/2012 22:58 aionfriends#7
where i must put in the script??

tell me fast ;)

THX
01/09/2012 22:47 Breakit#8
i would guess in autoit.