hey there,
I'm pretty new to Autoit and i've figured out how to do some basic things to help automate the game i'm playing, World of Warcraft. I think i'm about as far as i can go in the programming without learning how to do the GUI stuff. I downloaded the GUI creator thing from the sticky at the top of the GUI forums, i've made a GUI with a button. But now i'm trying to figure out how to import it into my code.
Here's my code, it simply runs an auto clicker to click the "6" button in wow no matter what window is activated. I want to set up a simple GUI with a Start, and a stop button. This is simply for my learning experience because i can easily click run, and click "pause" to stop it. Thank you for your help.
$win_title = "World of Warcraft"
WinActivate($win_title, "")
WinSetOnTop($win_title, "", 0)
Sleep(1000)
HotKeySet("{PAUSE}", "EndScript")
$i = 0
$win_title = "World of Warcraft"
While $i <= 10
ControlSend ( "World of Warcraft", "", "", "6")
Sleep(4500)
WEnd
Func EndScript()
$exit = MsgBox(4, "Ender", "Exit the Bot?")
If $exit = 6 Then
Exit
EndIf
EndFunc
Thanks,
-Lbessy
P.S. i have created a "simple" GUI i'm just trying to figure out how to import it into the code