Jump to content
Sign in to follow this  
Eepi

[WoW] Background clicking/anti-afk

Recommended Posts

Eepi

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!

Share this post


Link to post
Share on other sites
Swift

ControlClick()

ControlSend()

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×