I am just showing some great commands that are very important for bots!
# Scripts are for AutoIt
AutoIt v3 - Automate and Script Windows Tasks - For Free!
MsgBox(0, "Program Name, "Program Info")
Makes a "Message Box", which can be used to display data, and after the "OK" button is pressed, it can send keystrokes, move characters, etc.
~~~~~~~~~~
Run (@ProgramFilesDir & "\World of Warcraft\WoW.exe", "")
Will run World of Warcraft from ANY drive (Yes, not just C:, this is great for auto-run scripts!)
~~~~~~~~~~
Sleep("10000")
Is like a wait timer
10000 - 1 second
20000 - 2 seconds
30000 - 3 seconds
40000 - 4 seconds
...And so on
~~~~~~~~~~
Send("{a}")
Inside of { , } , you would place the key to send (If {ENTER} is not added, this will work like moving your character)
~~~~~~~~~~
Send("{ENTER} Text {ENTER}")
Would type "Text" for World of Warcraft
~~~~~~~~~~
WinActivate("World of Warcraft")
WinWaitActive("World of Warcraft")
Both these commands are to make sure the program switches to World of Warcraft, or any window if shown in the parentheses.
~~~~~~~~~~
#include <GUIConstants.au3>
Needed if you are using any GUIConstants. A GUI Constant is something such as..
$GUI_EVENT_CLOSE
Used in MessageLoop scripts
~~~~~~~~~~
Run("Notepad.exe")
Run("Calc.exe")
The basic run command, without the Drive, Folder, Folder specification, is read straight from system32. The basic run command can run any program in system32 without C:/Program Files, etc.