Questions tagged [autoit]

AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting.

AutoIt 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 (for example, VBScript and SendKeys). AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying “runtimes” required!

AutoIt was initially designed for PC “roll out” situations to reliably automate and configure thousands of PCs. Over time it has become a powerful language that supports complex expressions, user functions, loops and everything else that veteran scripters would expect.


Features

  • Easy to learn BASIC-like syntax
  • Simulate keystrokes and mouse movements
  • Manipulate windows and processes
  • Interact with all standard windows controls
  • Scripts can be compiled into standalone executables
  • Create graphical user interfaces (GUIs)
  • COM support
  • Regular expressions
  • Directly call external DLL and Windows API functions
  • Scriptable RunAs functions
  • Detailed helpfile and large community-based support forums
  • Compatible with Windows 2000 / XP / 2003 / Vista / 2008 / Windows 7 / Windows 8 / 2008 R2
  • Unicode and x64 support
  • Digitally signed for peace of mind
  • Works with Windows Vista’s User Account Control (UAC)

AutoIt has been designed to be as small as possible and stand-alone with no external DLL files or registry entries required making it safe to use on servers. Scripts can be compiled into stand-alone executables with Aut2Exe.

Also supplied is a combined COM and DLL version of AutoIt called AutoItX that allows you to add the unique features of AutoIt to your own favourite scripting or programming language.


Resources

Related

1756 questions
6
votes
3 answers

Print to console/command prompt

I want to write text to console/Windows command prompt in AutoIt. I made a test script as shown below: Func Test() ConsoleWrite("Hello") EndFunc Test() I saved the script as test.au3. When I run it, it does not print to console. I checked…
Neon Flash
  • 3,113
  • 12
  • 58
  • 96
6
votes
3 answers

AU3Recorder not running

I downloaded the latest version and ran full installation using default settings. Then I downloaded SciTE4AutoIt3.exe. I created and saved a new .au3 file. When I click the AU3Recorder option in Tools menu nothing happens (I expected the recorder…
Alice
  • 93
  • 1
  • 2
  • 9
6
votes
1 answer

How to add a folder to 7z archive using 7za?

I am having a bad time with the standalone version of 7-Zip. I want to compress a folder with a password. I tried: 7za a my_folder -pmy_password. It's compressing all the files in which 7za.exe is located with file name of my_folder. BTW: I am using…
TheDcoder
  • 509
  • 1
  • 7
  • 23
6
votes
2 answers

Call functions in AutoIt DLL using Python ctypes

I want to call functions from an AutoIt dll, that I found at C:\Program Files (x86)\AutoIt3\AutoItX\AutoItX3.dll using Python. I know I could use win32com.client.Dispatch("AutoItX3.Control") but I can't install the application or register anything…
Josh
  • 93
  • 5
6
votes
4 answers

Handle windows authentication pop up on Chrome

I am trying to handle the basic authentication pop up for my Selenium webdriver scripts using AutoIt. I wrote a script for Firefox and Internet Explorer but it doesn't work for Chrome. When I tried identifying the authentication pop up on Chrome…
Pooja Mistry
  • 91
  • 1
  • 1
  • 5
6
votes
1 answer

Get a list of all open windows using AutoIt

I'm trying to get rid of my minimize, maximize and close buttons on all windows. Googling around I found this: $h = WinGetHandle("[CLASS:Notepad]") $iOldStyle = _WinAPI_GetWindowLong($h, $GWL_STYLE) $iNewStyle = BitXOr($iOldStyle,…
Nicolas Straub
  • 3,381
  • 6
  • 21
  • 42
6
votes
1 answer

Using AutoIt to click a button on a window

Which function should I use in order to click a pop button after running a program? For example, the league of legends launcher button is what I want to simulate the click.
Apprentice Programmer
  • 1,485
  • 4
  • 26
  • 39
6
votes
2 answers

Capture and display STDOUT at the same time

I have the following code to capture and process the Run command output. How do I modify it such that the Run command window displays output and at the same time the output gets logged? Replacing @SW_HIDE with @SW_SHOW (or the equivalent) just shows…
Siva
  • 294
  • 1
  • 9
  • 25
6
votes
1 answer

AutoIt Wait for a Control Element to Appear

I'm attempting to automate an application using AutoIt, and I need to wait for a control to appear within the application before the automation can begin. This control loads shortly after the application starts, but it does not change the window…
JadziaMD
  • 2,690
  • 5
  • 31
  • 42
5
votes
3 answers

How to Right click of File in Windows Explorer by AutoIt

I wish to simulate a right click on a file. This is done by opening a Windows Explorer window and then right clicking on it. The main issue is finding the location of the file in Windows Explorer. I am currently using Autoit v3.3.8.1. My code 's…
Joseph Zeng
  • 59
  • 1
  • 1
  • 3
5
votes
0 answers

AutoIt testing of Eclipse RCP

I'm struggling with AutoIt regression tests. AutoIt was chosen because requirement is 100% blackbox GUI testing (no intervention to tested project). This solution has nevertheless got some issues, with which I need help. Changing tabs in…
UltraMaster
  • 1,054
  • 1
  • 11
  • 23
5
votes
3 answers

Do AutoIt scripts, executed as service, function for GUI actions?

I'm using an AutoIt script to start and automate a GUI application. I need to activate the script each hour. Will AutoIt scripts (which perform actions on a GUI) work when used as a service? The script will be run as a service (not scheduled task).
FerranB
  • 35,683
  • 18
  • 66
  • 85
5
votes
0 answers

Not getting focus back to browser after AutoIT Widows authentication in Robotframework

A condition that I am trying to automate in Robotframework: Go to URL(Library Selenium2Library) Login with windows authentication (Library AutoItLibrary) focus back to the browser TestCase in RobotFramework: Open browser: *** Settings…
JINOPPIE
  • 51
  • 2
5
votes
2 answers

Debugging an AutoIt script or get currently executed script line number

My AutoIt script sends a list of clicks and key-presses to automate an old closed source application. It has bugs so I want to know how I can debug AutoIt scripts. Or at least output the script's line number (to show code executed in real time).
user3131905
5
votes
2 answers

Execute AutoIt and wait for finish

I'm needing to implement a macro that runs after autoit and finished running the program it runs the rest of the macro. I tried the Shellandwait(), but I did not find documentation explaining about it. I took other examples of code that forum and…