AutoIt Scripting LanguageAutoIt is a scripting language that helps developers to automate Windows desktop applications. Similar to other scripting language, it allows developers to generate scripts / automate desktop applications, which saves a lot of time for developers. So what makes this scripting language stand apart? AutoIt makes use of simulated keystrokes / mouse coordinates of the window/screen, which is quite difficult to achieve (with precision) in other scripting languages. AutoIt is gaining huge popularity among developers due to the fact that it is easy to learn and offers features for quick software development.

Downloading AutoIt

The latest version of AutoIt can be downloaded by visiting the following website.

AutoIt – Built-in Tools

In order to make use of this scripting language effectively, let’s take a look at the built-in tools offered by AutoIt.

a) Script Recorder

Script recorder offers provisions to record actions of each mouse click. The script recorder tool proves to be very handy for beginners. The tool resides in the following folder [Installed Folder/Extras/Recorder] and the current version is v3.3.14.0.

Script Recorder

Script Recorder Tool Functionality

The script recorder has the ability to record tasks performed by a user by tracking the mouse movements (x, y coordinates) and window text. Additionally, it has a unique feature that generates internal functions, which helps users to activate window or set delay for a smooth playback. All actions performed by users, such as mouse clicks and keystrokes are captured along with the information of the active window they are working on. Moreover, all this information is automatically captured on the SciTE editor.

b) SciTE Editor

The SciTE editor is used to develop scripts and it offers certain really useful features such as syntax highlighting, code folding, auto complete, etc., which are very handy for developers. A lite edition of SciTE editor is bundled along with AutoIt, which is quite effective to build/write descriptive scripts using different control parameters and execution logics. Below are some of the key features of the SciTE editor:

Syntax Highlighting

Syntax Highlighting

Code Folding

Code folding

Auto Complete Feature

Auto complete feature

Intelligence

Intelligence

SciTE editor also offers exhaustive documentation (help files), which is quite descriptive and includes examples. If you are stuck with a problem or want additional information about any function, variable or syntax, etc. then you can use help function by clicking the F1 key.

c) Finder Tool

Equally important is the finder tool, which helps developers to capture the windows GUI objects and its properties. Additionally, using the features of this tool developers can uniquely identify objects. This tool provides details of the properties of an object and can be activated by dragging and dropping it on a window object. By making use of finder tool, developers can get information about window titles, text on window, window size etc. Below is an example (screenshot) of using the finder tool to automate a calculator.

Object inspector

Hope the blog helped you gain insights on certain basic features and functionality of AutoIt. In my next blog, we will learn writing basic programs and find out about the advanced level of identifications in AutoIt.

The following two tabs change content below.
Sheshajee Dasari was a QA Specialist at Evoke Technologies. He has extensive experience in designing test automation frameworks. While working at Evoke, he was keen to explore new testing technologies and implement new software testing frameworks.

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>