Creating your own bots and macros can be fun, and its very simple to do. This guide will talk about some basic methods on using AutoIt, and some very useful functions AutoIt provides that would help in making macros for Conquer.
First, if you don't have it already, download AutoIt by clicking the following link.

To start a new script, either go to Start>All Programs>AutoIt v3>SciTE Script Editor, OR right click your desktop and click new>AutoIt v3 Script.
Functions
Everybody probably knows what a function is, but if you don't, I'll give a brief description. A function is a series of commands that you can execute easily in one line of code. For example, in AutoIt there is a built in function called MouseClick(). What goes inside the parentheses are called parameters. The parameters tell the function specifically how to work. But you have to know the parameters that a function requires before using that function.
In MouseClick(), you have to enter the following in the parentheses: ("mousebutton(left or right)", x-coord, y-coord, #of clicks, speed)
For example, if I typed 'MouseClick("left",60,60,2,1)', it would move the mouse to coordinates (60,60), and click twice. The speed can be 1-10, 1 being instantly.
There are only a few functions that are useful in making bots/macros for CO, and these are the ones most useful to me:
sleep(time) --- ex. sleep(1000) would pause the script for 1 second
send(key) --- ex. send("{F1}") would hit the F1 key.
---More keys are "{CTRLDOWN}" , "{CTRLDOWN}" , "{LSHIFT}" , and "{RSHIFT}"
User-Defined Functions
The name is pretty self explanatory. These are functions that are made by the user, and can be called any time in the program by the user. To make your own function you type the following"
Func Click() ;creates a function called "Click". Since the parentheses are empty, this function doesn't require any parameteres from the user.
sleep(1000) ;code inside function
MouseClick("left",150,60,1,1) ;code inside function
sleep(1000) ;code inside function
EndFunc ; ends the function
Now, if the programmer at any time wants the program to pause 1 second, click (150, 50) one time, and then wait another second; they just have to type 'Click()'
Loops
You need to know how to do a loop in AutoIt to made a macro for CO, as when you make a macro you are going to want it to run continuously.
The loop I use most is a 'While', and they are very simple to use. If you want a loop to go forever simply type this:
While 1 ;starts loop
MouseClick("left",150,100,1,1)
sleep(1000)
WEnd ;where loop ends
Say you want something to run 10 times. You can use a counter variable to mark how many times something has ran. For example:
$counter=1 ;declares a variable "$counter" and sets its value at 1
While $counter<=10 ;this loop will run as long as $counter is less than or = to 10
MouseClick("left",150,100,1,1) ;code inside loop
sleep(1000) ;code inside loop
$counter=$counter+1 ;increments counter by 1. This makes this a non-infinite loop
WEnd ;end of loop
HotKeys
Say you want a loop to run forever, but exit when you hit "Ctrl+Alt+x". You have to set a hotkey, that when pressed, will trigger a Use-Defined Function. For example, this would be the whole program:
HotKeySet("^!x","QuitLoop") ; when the program is running, hitting "ctrl+alt+x" will call the function called "Quit"
$counter=0 ; declares a counter variable
Func QuitLoop() ;user defined func called 'QuitLoop'
$counter=1 ; if func QuitLoop is called, $counter will become 1
EndFunc
While $counter=0 ; loop goes while $counter is 0
MouseClick("left",150,60,1,1) ; code inside loop
sleep(1000) ; code inside loop
WEnd
^^In the above program, the loop will continue running until somebody hits "Ctrl+Alt+x', making $counter=1. If you want to make it so the whole program will automatically exit, use this hotkey:
HotKeySet("^!x","QuitProg") ;sets hotkey
Func QuitProg() ;user-defined-function
Exit ; quites out of the script
EndFunc
If-Statements
An if-statement tell the computer to do something only if certain conditions are met. If statements make the programs make decisions on what to do based on what the program user has inputted/clicked. To help with this example, I'll show you how to make a very simple built-in GUI (Graphic User Interface (windows)).
$nbr=InputBox("Input Box","Give me a number 1-100") ;InputBox() is a built in GUI function that automatically creates a window where the user enters text or a number. Since there is a '$nbr=' before it, whatever the user enters into the box will be stored into the variable '$nbr'
If $nbr>50 Then ; If $nbr is greater than 50 THEN do the following until the if is closed
MsgBox(0,"Output Box","Your number was greater than 50") ; like inputbox, but simply displays text to the user and exits when they click "ok"
EndIf ; end of the if-statement
If $nbr<50 Then
MsgBox(0,"Output Box","Your number was less than 50")
EndIf
If $nbr=50 Then
MsgBox(0,"Output Box","Your number was 50")
EndIf
^^These are VERY basic GUIs, because they are built in, you don't really even create them. If people like this guide and I get some positive feedback from it, I will make another guide that goes into the detail of creating GUIs.
Compiling Scripts to .exe
When you have your script written and tested, go to start>programs>AutoIt v3>Compile script to .exe. Find your script file, and click "Convert". If you have a .ico editor you can attack and .ico to serve as your .exe's icon.
I know the examples I posted don't really create macros, but when you combine things together and be creative, you can make a fullworking macro. Here are two programs I wrote using AutoIt. If you download AutoIt, you can decompile them and look at the code to help you out or play around with it. Here they are:







