Showing posts with label AutoIt. Show all posts
Showing posts with label AutoIt. Show all posts

Procedure to run AutoIt script using ant (build.xml) tool.

In this post I will cover the procedure of AutoIT script execution with the help of ant build tool. As we know ant has java based library. But here I have set AutoIT compiler with Ant's build.xml file and can execute AutoIT scripts
  1. Ant path must be set in to system environment variable.
  2. AutoIT installation directory path must be set in to system environment variable.
    Below is a sample build.xml file for AutoIT script execution.

Command line execution of AutoIT scripts

In this post I am going to explain command line execution of AutoIT scripts.

Steps to execute:
  1.  Setup AutoIt installation directory path into your machine environment path.
    As if auto It installed in “C:\Program Files\AutoIt3” path you must set up this path in your system environment path.
  2. Open command prompt goes to you AutoIt scripts folder and run command.

      AutoIt3 ScriptName

AutoIt notepad script

In this post I am going to explain that how to create auto it script. I have created a AutoIT script for notepad where I open notepad, change font property, type some text and save in machine.

How to get windows info using AutoIT?

Prerequisites. 

  Download and install AutoIt on machine from below link.
  http://www.autoitscript.com/site/autoit/downloads/

Steps To Get Windows Info:
  1.  Go to “Start button > All Programs >  AutoIT V3” and click “AutoIt Window info” option