Comi's Autoit guide.
This is not my own work, its a repost from another forum that i felt would be relevant to all here who want to make a start with auto it to make macros and bots. I will however extend on it and add in some relevent things pertaining to the making of bots and macros for Eudemons Online.
First of all Im writing this guide to help people understand the basics of autoit, and end up having a general idea of how to script with au3. Im making this guide with info from me, the autoit help file, the autoit forums, & others.
Be ready to read a lot , and read the same stuff several times if you dont understand. Be ready to do LOTS of tests since its the BEST way to learn this lang IMO.
Best way to used this guide is to go testing each example as they go appearing.
This guide is not ment to be-all and end-all autoit3 guides out there. All autoit3 info is NOT and wont be in this guide as this is a begginer's guide. Already know programming ? Already knew autoit2 or 3 ? Go read the help file.
AutoIt v3 is a BASIC-like scripting language designed for automating the Windows GUI. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys).
AutoIt was initially designed for PC "roll out" situations to configure thousands of PCs, but with the arrival of v3 it is also well suited to performing home automation and the scripting of repetitive tasks.
Which in simple's man talk means, that with autoit you can basically do everything that you can do with mouse & keyboard , and much more...
AutoIt has been designed to work on Windows 95, 98, ME, NT 4, 2000, XP and 2003.
Getting autoit v3
In order to use this guide properly you will need autoit.
Find it here URL="http://www.autoitscript.com/autoit3/"]http://www.autoitscript.com/autoit3/[/URL]
Make sure to install it, if you have trouble installing it, coding simply is not for you.
________________________________________
Basics
AutoIt scripts are simple text files that you can edit with notepad or any other simple test editor. Autoit will read those scripts and do what you write step by step.
If you have previous programming knowledge you will find that scriptiong in autoit is extremely easy, therefore also very fun to do.
One of the best new features with AutoIt v3 is the ability to work directly with certain types of Window Controls. Almost everything you see on a window is a control of some kind: buttons, listboxes, edit fields, static text are all controls. In fact Notepad is just one big "Edit" control! Because AutoIt works directly with a control they provide a more reliable way to automate than to just sending keystrokes.
Awesome utility that gives you all the info you might need about a specific window. It will reveal info only about the window you have currently selected. It will also be "always on top", meaning that it will always be on top of other windows.
AutoIt Window Spy allows you to get information from a specified window that can be used to effectively automate it.
If will give the folowing info:
* Window titles
* Text on the window (visible and hidden)
* Window size and position
* Contents of the status bar
* Position of the mouse pointer
* Colour of the pixels underneath the mouse pointer
* Name of the Control underneath the mouse pointer
With the help of AU3Spy you should be automating in no time!
When AU3Spy is running you may want to copy text directly from it using CTRL-C and then paste it into your script to avoid spelling/case errors. This can be difficult when you want to capture pixel/mouse information as it keeps changing! To help with this you can "freeze" the output of AU3Spy by pressing CTRL-ALT-F. Press the keys again to "unfreeze".
CTRL + ALT + F , remember that as since it is very usefull.
This is not my own work, its a repost from another forum that i felt would be relevant to all here who want to make a start with auto it to make macros and bots. I will however extend on it and add in some relevent things pertaining to the making of bots and macros for Eudemons Online.
First of all Im writing this guide to help people understand the basics of autoit, and end up having a general idea of how to script with au3. Im making this guide with info from me, the autoit help file, the autoit forums, & others.
Be ready to read a lot , and read the same stuff several times if you dont understand. Be ready to do LOTS of tests since its the BEST way to learn this lang IMO.
Best way to used this guide is to go testing each example as they go appearing.
This guide is not ment to be-all and end-all autoit3 guides out there. All autoit3 info is NOT and wont be in this guide as this is a begginer's guide. Already know programming ? Already knew autoit2 or 3 ? Go read the help file.
________________________________________
IntroductionAutoIt v3 is a BASIC-like scripting language designed for automating the Windows GUI. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys).
AutoIt was initially designed for PC "roll out" situations to configure thousands of PCs, but with the arrival of v3 it is also well suited to performing home automation and the scripting of repetitive tasks.
Which in simple's man talk means, that with autoit you can basically do everything that you can do with mouse & keyboard , and much more...
AutoIt has been designed to work on Windows 95, 98, ME, NT 4, 2000, XP and 2003.
________________________________________
Getting autoit v3
In order to use this guide properly you will need autoit.
Find it here URL="http://www.autoitscript.com/autoit3/"]http://www.autoitscript.com/autoit3/[/URL]
Make sure to install it, if you have trouble installing it, coding simply is not for you.
________________________________________
Basics
AutoIt scripts are simple text files that you can edit with notepad or any other simple test editor. Autoit will read those scripts and do what you write step by step.
If you have previous programming knowledge you will find that scriptiong in autoit is extremely easy, therefore also very fun to do.
One of the best new features with AutoIt v3 is the ability to work directly with certain types of Window Controls. Almost everything you see on a window is a control of some kind: buttons, listboxes, edit fields, static text are all controls. In fact Notepad is just one big "Edit" control! Because AutoIt works directly with a control they provide a more reliable way to automate than to just sending keystrokes.
________________________________________
Autoit Window spyAwesome utility that gives you all the info you might need about a specific window. It will reveal info only about the window you have currently selected. It will also be "always on top", meaning that it will always be on top of other windows.
AutoIt Window Spy allows you to get information from a specified window that can be used to effectively automate it.
If will give the folowing info:
* Window titles
* Text on the window (visible and hidden)
* Window size and position
* Contents of the status bar
* Position of the mouse pointer
* Colour of the pixels underneath the mouse pointer
* Name of the Control underneath the mouse pointer
With the help of AU3Spy you should be automating in no time!
When AU3Spy is running you may want to copy text directly from it using CTRL-C and then paste it into your script to avoid spelling/case errors. This can be difficult when you want to capture pixel/mouse information as it keeps changing! To help with this you can "freeze" the output of AU3Spy by pressing CTRL-ALT-F. Press the keys again to "unfreeze".
CTRL + ALT + F , remember that as since it is very usefull.
________________________________________