Install and get started with autoit

AutoIt is a lightweight freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting.It is especially useful for generating keystrokes and reading information from native Windows controls.You can make your computer work like human using it.

AutoIt is intended for use on the Microsoft Windows operating system. It is compatible with versions from Windows XP onwards.
Download the installation utility from https://www.autoitscript.com/site/autoit/downloads/

Write simple autoit script

A simple AutoIt script showing some of the basic features of the language. Open a notepad and paste following content and save as HelloWorld.au3. au3 is the autoit file format .you can use semicolons introduce comments.


; Include constants.  This Example for the MsgBox() function
#include 

; Define and initialize the title of a dialogue box
; All AutoIt variables are loosely typed
; Local specifies the scope
Local $title
$title = “Example Window“

; Alternative method of implicit definition
; This time also indicating constant
Const $text = “Hello World“

; Third example definition
; Strings and integers defined in the same manner
$timeout = 30

; Create dialogue box using #included constants
MsgBox($MB_ICONINFORMATION, $title, $text, $timeout)

; Program end 
Exit

If you run this file, you can use the following output.

post image

You can automate most of gui tasks with less effort, If you really wish to master this scripting skills.

Rasika Preethiraj

A technophile at icrony since 2012, In a quest to programmatic automations for scaled organisations through the use of python, php, autoit and machine learning


Comments


Post a Comment



Trending

Latest Posts

Tags

Newsletter

Subscribe to our newsletter for good news, sent out every month.