Firstly, make a macro with the following code:
Then, open up a new Script it in AutoIt and paste the following.. This will run in the background, and press the key 1 every 15 seconds. This means you need your macro on your ActionBar on "1". You can edit the key it presses where it is RED in the code.Code:/click StaticPopup1Button1 /click StaticPopup2Button1 /script LeaveParty()
HotKeySet("{F5}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
Global $Paused, $WinTitle ='World of Warcraft'
TogglePause()
While 1
If WinExists($WinTitle) Then
ControlSend($WinTitle, "", "", "1", 1)
Sleep(1500)
ControlSend($WinTitle, "", "", "1", 1)
Sleep(15000)
Else
MsgBox(0, "WoW Client not found!", "WoW isn't running! Please start up WoW then run this script!" &@CRLF& "Closing script now.", "", "")
Exit
EndIf
WEnd
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script has been paused! F5 - Pause | ESC - Exit',0,0)
WEnd
ToolTip("")
EndFunc
Func Terminate()
Exit 0
EndFunc
Now that you have it made, save as .AU3 or compile to .EXE, doesn't matter.
When you startup the script, it starts PAUSED, so press F5 to turn it on.
F5: Pauses bot
ESC: Closes bot
//You can download this Script in .AU3 form HERE
//You can download this Script in .EXE form (you won't need AutoIt for this!) HERE