Cameronsdad, fortunately the pause key works well and WoW does not interfere with it.
Valuater, much thanks, your bit of code really helped a lot! I've revised it, I know the code isn't perfect, but most important of all the app works as intended. Clicking pause starts it, clicking pause again stops it, rinse and repeat.
Is there any way to display the ToolTip('AntiAFK started.',0,0) in a smooth manner? Even if I set it to display for 1 or 2 seconds. For those 2 seconds it flashes and blinks very fast, like if there was some problem with the refresh rate or whatever. Is there any way to display the ToolTip smoothly?
Here's the revised code that works:
WinWaitActive("World of Warcraft")
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("!{PAUSE}","Quit")
Dim $Paused
TogglePause()
While 1
Start()
WEnd
func Start()
ToolTip('AntiAFK started.',0,0)
Sleep(1000)
ToolTip("")
While 1
Send("{SPACE}")
Sleep(Random(120000,240000))
WEnd
EndFunc
Func TogglePause()
$Paused = NOT $Paused
While $Paused
WEnd
Start()
EndFunc
func Quit()
Exit
EndFunc