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.

Author

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.
Please follow and share

4 Comments

  1. Samy Dert

    October 21, 2015

    Are you going to talk about uiautomation with autoit?
    This is the forum link:
    https://www.autoitscript.com/forum/topic/153520-iuiautomation-ms-framework-automate-chrome-ff-ie/
    This is the github link:
    https://github.com/jvanegmond/au3_uiautomation

  2. Sheshajee Dasari

    October 27, 2015

    No Dert, Thanks for info.. Very useful..

  3. Tusar Behura

    July 23, 2017

    How to create a record and playback functionality to a automation tool.

  4. mohit

    February 2, 2018

    Hi Sheshajee Dasari.
    Is it possible to replace QTP from Autoit.

Leave a comment