Hi, this is my first post and first ever made script. So, I was going to make a script that would press "1" to send chat message and "SPACE" to prevent going AFK in WoW while its minimized (on background) but I can't get it working. I got it first to click "1" but not "SPACE" and vice versa but can't get them working together. And I'm not sure how I can make the script work while minimized. So here is what I have atm: WinWaitActive("World of Warcraft")
HotKeySet("{PAUSE}", "Start")
HotKeySet("!{PAUSE}","Quit")
TogglePause()
func Start()
HotKeySet("{PAUSE}")
HotKeySet("{PAUSE}", "TogglePause")
ToolTip('AutoClicking Started.',0,0)
While 1
Send("{1}")
Sleep(Random(250,1000))
Send("{SPACE}")
Sleep(Random(12000,24000))
WEnd
EndFunc
Func TogglePause()
ToolTip('AutoClicking Stopped.',0,0)
HotKeySet("{PAUSE}")
HotKeySet("{PAUSE}", "Start")
While 1
sleep(100)
WEnd
EndFunc
func Quit()
Exit
EndFunc
So what should I do now to get it work on background and send "1" and "SPACE" into WoW?
Thanks in advance!