Code:
#include <GUIConstantsEx.au3>
; Script Start - Add your code below here
Opt("TrayOnEventMode",1)
Opt("TrayAutoPause",0)
Opt("GUIOnEventMode", 1)
$MainBot = GUICreate("CHiKo's Bot",185,100)
$startbot = GUICtrlCreateButton("Start Bot", 0, 0, 60)
GUICtrlSetOnEvent($startbot, "StartBot")
$startbotautologin = GUICtrlCreateButton("Start Bot With Auto Log In", 0, 30, 130)
GUICtrlSetOnEvent($startbotautologin, "StartBotAutoLogIn")
GUISetState(@SW_SHOW)
While 1
Sleep(1000)
Wend
Func StartBot()
MsgBox(0, "GUI Event", "You started the bot")
Run ("D:\World of Warcraft\WoW.exe")
HotKeySet("!{a}", "Attack")
HotKeySet("!{e}", "HotKeyEmuHacker")
HotKeySet("!{r}", "Rebuff")
HotKeySet("!{h}", "Heal")
HotKeySet("{ESC}", "Terminate")
EndFunc
Func StartBotAutoLogIn()
HotKeySet("!{a}", "Attack")
HotKeySet("!{e}", "HotKeyEmuHacker")
HotKeySet("!{r}", "Rebuff")
HotKeySet("!{h}", "Heal")
HotKeySet("{ESC}", "Terminate")
MsgBox(0, "GUI Event", "You started the bot")
$UserName = InputBox("Auto Log In","Enter Your UserName")
$PassWord = InputBox("Auto Log In","Enter Your Pass")
Run ("D:\World of Warcraft\WoW.exe")
Sleep(22000)
Send($UserName)
Sleep(3500)
Send("{TAB}")
Send($PassWord)
Sleep(3500)
Send("{ENTER}")
Sleep(10000)
Send("{ENTER}")
Sleep(12000)
Sleep(7000)
EndFunc
Func HotKeyEmuHacker()
Run("C:\WowEmuHacker5")
EndFunc
Func Rebuff()
MouseClick("Left",1008,184,1)
Sleep(1300)
MouseClick("Left",999,231,1)
EndFunc
Func Attack()
$i = 0
Do
Send("2")
Sleep(1600)
Send("3")
Sleep(3400)
Send("4")
Sleep(1600)
Send("5")
Sleep(1600)
Send("6")
$i += 1
Sleep(7500)
Until $i = 2
EndFunc
Func Terminate()
Exit 0
EndFunc
Func Heal()
Send("9")
Sleep(22000)
EndFunc
Soo.. I got bored on a private server, figured id make a program that basically presses the keys i use to attack and what not.
I just started learning AutoIt yesterday and i just finished this today.
Is it alright?
Comments?
Please post back positive or negative, thank you.
---------- Post added at 10:04 PM ---------- Previous post was at 08:16 PM ----------
91 views no comments -.-
thanks? xD