Everybody can write it...
try AutoIt AutoIt v3 - Automate and Script Windows Tasks - For Free!
Edit: And for all the lazy people
Code:
Global $Paused
#Include <WinAPI.au3>
Local $hwnd
Local $winclass
$hwnd = WinGetHandle("World of Warcraft")
$winclass = _WinAPI_GetClassName($hwnd)
HotKeySet("{ESC}", "Stop")
HotKeySet("{PAUSE}", "PauseScript")
While 1
ControlSend("","", $hwnd, "1", 1)
Sleep(100)
WEnd
Func PauseScript()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Paused',0,0)
WEnd
ToolTip("")
EndFunc
Func Stop()
Exit
EndFunc
this little script is spamming every 100 ms the 1-Key in the WoW-Window (independent of focus)
The PAUSE Key is doing what a Pause-Key has 2do
and ESCape exits the script
Just load AutoIt and feel free to adjust the number/letter/F1 (etc) or the time, also able to compile in small .exe programs.
Tip:
In the AutoIt manual is a big list of special-keys like the F-Keys, but it's very simple.
Just replace the "1" in
Code:
ControlSend("","", $hwnd, "1", 1)
with "{F6}" and now the script is spamming the F6-Key
Code:
ControlSend("","", $hwnd, "{F6}", 1)