as long as you hold down a key you defined in the list (and wow is active) it will spam it, should be self explaining
Code:
#Include <Misc.au3>
Local $keys = "1,2,3,4,5,E,Q" ; list of keys, comma seperated, letters in UPPERCASE
Local $delay = 50 ; delay between keypresses in ms, if this is too low wow will disconnect you
Local $hWnd=WinGetHandle("World of Warcraft")
Local $user32 = DllOpen("user32.dll")
Local $arr = StringSplit($keys, ",")
Local $iMax = UBound($arr)
While WinExists($hWnd)
if WinActive($hWnd) Then
For $i = 0 to $iMax - 1
if _IsPressed(Hex(Asc($arr[$i])), $user32) then
ControlSend($hWnd, "", "", $arr[$i])
Sleep($delay)
endif
Next
EndIf
Sleep(10)
WEnd
DllClose($user32)
have autoit installed, save the code to a file ending with .au3 and run it :P