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
3
votes
2 answers

How to press "ALT+F4" using AutoIt

I am new in AutoIt. I have run the notepad by using the following code in AutoIt: Run("notepad.exe") Now I want to quit the application by using "ALT+F4". How to press "ALT+F4" with AutoIt tool?
Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
3
votes
1 answer

Unexpected behavior from _StringExplode()

I have a string: string1 string2 - string3 string4. I need it split in two at the - (note the space on either side of the "-"). I have the following code which isn't working as expected: #include #include Local…
Sean Bannister
  • 3,105
  • 4
  • 31
  • 43
3
votes
1 answer

Automate through a remote desktop using Selenium and AutoIt

I want to automate certain tasks which needs it to go through Remote Desktop Connection. I will share the code which I wrote till now. public class MainClass { static WebDriverWait wait; static WebDriver driver; public static void main(String…
abhilash poojary
  • 117
  • 1
  • 2
  • 8
3
votes
1 answer

AutoIt PixelGetColor from background/inactive/unfocused window

PixelGetColor has an optional parameter hwnd (handle of window the pixel is read from). Therefore I assume it is possible to read from unfocused windows (i.e not minimized, but behind another window); but I can't get it to work like that. Is my…
Nikola R
  • 33
  • 1
  • 3
3
votes
1 answer

Why AutoIt succeeds sending input to directx application and SendInput/SendMessage doesn't?

Recently I made a program which sends keystrokes into a DirectX application. The application changes the cursor when the user clicks a certain key. When I tried it with C# code (Window API) it did not work, but when I tried it with AutoIt it worked…
Xboxbo
  • 69
  • 6
3
votes
1 answer

How do I build a dynamic array and loop through it in AutoIt?

I was reading the official AutoIt Array Parameters, and from what I can tell you have to tell AutoIt how many elements your array has before you can even create it. Since my array will be dynamic according to what the user selects in my interface…
Cesar Bielich
  • 4,754
  • 9
  • 39
  • 81
3
votes
1 answer

Execute AutoIt code from Eclipse

I am doing automation using Selenium WebDriver and want to handle a browser authentication window. I know Selenium does not support this on its own but I am able to using AutoIt. We have to share our code with the client, so can AutoIt code be…
Naseem
  • 911
  • 5
  • 18
  • 48
3
votes
1 answer

Create tagSECURITY_ATTRIBUTES object

Using _WinAPI_CreateFileMapping() I want to enable a different user on the same machine to receive messages via _WinAPI_OpenFileMapping(). I am receiving errors when I try to open the file mapping (invalid handle error #6), because of the security…
Scott Szretter
  • 3,938
  • 11
  • 57
  • 76
3
votes
5 answers

Possible Autoit-like JavaScript macros?

The title says it all. Is there a way to write macros in JavaScript to achieve a similar functionality to that of Autoit? I just would want to manipulate files on my own computer (offline) and could easily do it with autoit, but since I am currently…
Pytth
  • 4,008
  • 24
  • 29
3
votes
2 answers

RunWait() - add parameters

My AutoIt script launches another script (written in UIAutomation). So I wrote this: RunWait("C:\AutoUIInst\Test\bin\Debug\" & "Test.exe", "","") It works fine. But now I have to add a parameter. For example: "Test.exe -someParam" . So i tried…
kendzi
  • 311
  • 2
  • 6
  • 22
3
votes
1 answer

Restricting mouse and keyboard in autoit?

I'm trying to create a script so that during a task my keyboard/mouse is restricted from use aswell as whilst waiting for something what doesn't have a trigger/way of detecting if it's done I need it to stop me or anyone from moving the mouse/typing…
GTPE
  • 83
  • 2
  • 12
3
votes
1 answer

Capturing screenshot while workstation is locked

I would like to capture a screenshot of the monitor or a window, preferably using AutoIt (I am open to using any convenient method). The method needs to be able to function while the workstation is locked, due to the program being run overnight. I…
user2531887
  • 57
  • 1
  • 5
3
votes
1 answer

Making a loop stop when user presses a button

Im looking for some sort of method of making a loop terminate when the user presses a button. I understand that if you had a loop going, you could press control c, but that isn't what I want the user to have to do. I don't think it's possible in a…
user2605194
3
votes
1 answer

How to click a button which changes ID?

I am using AutoIt to automate an installer, which I start using Run(). Initially the installer's Next button is disabled (whose class at this point in time is Button3). When the Next button is enabled its class changes to Button1. I am not sure how…
nandish
  • 41
  • 2
3
votes
1 answer

Retrieve memory consumption of a process

My AutoIt script automates test cases. I suspect something is leaking memory. It starts at 10 MB, when test cases are over it reaches around 40 MB (Task Manager values). I want my AutoIt script to report memory consumption after each test case.…
user1692342
  • 5,007
  • 11
  • 69
  • 128