This Is Maks Guide On How To Make A Gui in auto It That Can Then Be Used To Start Macros For Games
Firstly we are going to want downlaod autoit (duh) so click on this link
http://www.autoitscript.com/autoit3/downloads.php
The click on download autoit v3
now once its installed go Start > Programs > AutoIt > Scite Script Editor
And This Should Load Up
At this point you can learn alot from jsut pressing F1 and looking throught the help files.
ok so firstly we are going to create the GUI this is the window it is actualy going to run in so this is the code we use to create the Gui
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
#include <GUIConstants>
$mainwindow = GUICreate("My First Macro", 300, 100)
GUICtrlCreateLabel("Click Start Macro To Begin The Macro", 60, 10)
GUICtrlCreateLabel("Or Press Ctrl+M To Start And Again To Stop", 60, 80)
$okbutton = GUICtrlCreateButton("Start Macro", 110, 40, 80)
This code shows us that we are creating the gui window and we are create to peices of text within the window and a button labled start.
afterwards we add this code onto the end of the above, this code is to actually show the window
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
GUISwitch($mainwindow)
GUISetState(@SW_SHOW)
so at the moment it should look like this
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
#include <GUIConstants>
$mainwindow = GUICreate("My First Macro", 300, 100)
GUICtrlCreateLabel("Click Start Macro To Begin The Macro", 60, 10)
GUICtrlCreateLabel("Or Press Ctrl+M To Start And Again To Stop", 60, 80)
$okbutton = GUICtrlCreateButton("Start Macro", 110, 40, 80)
GUISwitch($mainwindow)
GUISetState(@SW_SHOW)
next we will make it so when you click on the start macro button a message comes up saying macro started and so the exit button works paste this after the above work
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
While 1
$msg = GUIGetMsg(1)
Select
Case $msg[0] = $okbutton
MsgBox(0, "My First Macro", "Macro Started")
Case $msg[0] = $GUI_EVENT_CLOSE And $msg[1] = $mainwindow
ExitLoop
EndSelect
WEnd
you should now be left with the code looking like this
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
#include <GUIConstants>
$mainwindow = GUICreate("My First Macro", 300, 100)
GUICtrlCreateLabel("Click Start Macro To Begin The Macro", 60, 10)
GUICtrlCreateLabel("Or Press Ctrl+M To Start And Again To Stop", 60, 80)
$okbutton = GUICtrlCreateButton("Start Macro", 110, 40, 80)
GUISwitch($mainwindow)
GUISetState(@SW_SHOW)
While 1
$msg = GUIGetMsg(1)
Select
Case $msg[0] = $okbutton
MsgBox(0, "My First Macro", "Macro Started")
Case $msg[0] = $GUI_EVENT_CLOSE And $msg[1] = $mainwindow
ExitLoop
EndSelect
WEnd
So now when you press F5 on your keyboard the GUI should load up and the buttons should work, now all you gotta do is add your macro so i think i will leave that to you
Enjoy!
if your going to post this guide on another website ask me first