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

Conditional statement against _WinAPI_EnumDisplayDevices() -returned bitflag

_WinAPI_EnumDisplayDevices() reports 3 additional virtual monitors I don't need. So I've created an If statement where if specific flags come about (such as 1, 2, 3, 35, or 33), it only returns those monitors. However, it bugs me how long my…
Anthony Miller
  • 15,101
  • 28
  • 69
  • 98
3
votes
2 answers

Batch: start application doesn't show a GUI

I try to launch a self written autoit application called "KeyShortcuts.exe" using a batch called "launchMacros.bat". This applications provides keyboard shortcuts for various things and includes a GUI which shows me the available shortcuts.…
Martin Brandl
  • 56,134
  • 13
  • 133
  • 172
3
votes
1 answer

Handling multiple filenames from FileOpenDialog()

I am writing a picture editing program and am using the below snippet to choose the files: $var = FileOpenDialog("",@DesktopDir,"Images (*.jpg;*.bmp;*.png)",1+4) $var = StringReplace($var, "|", @CRLF) When I select multiple files all the file names…
Jonah
  • 2,097
  • 4
  • 20
  • 22
3
votes
4 answers

can I resize a program window in Windows to be arbitrarily large?

it seems that the size of the window, e.g. of an open browser, is capped based on the screen size or screen resolution or something along these lines. Is there a way to go around this and make the window arbitrarily tall?
EndangeringSpecies
  • 1,564
  • 1
  • 17
  • 39
3
votes
2 answers

Automated documentation for AutoIt

Is there an automated documentation tool like Javadoc or Doxygen for AutoIt? Or an AutoIt plugin for Doxygen?
RikSaunderson
  • 3,505
  • 6
  • 32
  • 50
3
votes
0 answers

Automatically Save File Dialog with Ruby / AutoIt / Watir

Ok, I am trying to use Watir/Ruby/AutoIt to automatically download a file. So say the dialog below pops up, my goal is to automatically click Save File, and then hit Ok. If someone could provide an example of how to do this I would be very much…
Vincent Russo
  • 1,087
  • 3
  • 20
  • 33
3
votes
2 answers

AutoIt Script to run .exe file

I want to run an application which is located in the following directory: C:\LCR 12\stu.exe With AutoIt, what would be the code to run the above stu.exe file?
Surfer
  • 41
  • 1
  • 1
  • 4
3
votes
1 answer

How do I click a button in a java toolbar which is not created by me?

Let me first show you the screenshot of the java toolbar. For proprietary reasons I cannot provide you the url of the site. Here is the screenshot: Now the focus is to click the 'Exclaim' button. I am using Python here. I am also certain selenium…
Sounak Banerjee
  • 99
  • 1
  • 10
3
votes
2 answers

How to handle print- and "Save Print output as" browser windows?

I have to visit an URL, login using credentials, then select a region name and click on show button so that a recent bill in the HTML page is shown (all this I did using a Selenium script). There is a button Print Option on that page. When clicked…
vinusha
  • 41
  • 1
  • 5
3
votes
2 answers

Virtual key-press to function-key of a gaming keyboard

How to virtually activate special function keys of a "MadCatz Strike 7" keyboard? Sending its key code should have MadCatz7 software act as if registering a physical key press. Are there key codes for these function keys (or is there a better way)?…
Sardar Agabejli
  • 423
  • 8
  • 32
3
votes
1 answer

How to add crosshairs to magnifying glass?

I'm stuck adding crosshairs to the magnifying glass. This is what my source code is based on: #include $MagWidth = 50 $MagHeight = 50 $MagZoom = 3 Global $dll[3], $DeskHDC, $GUIHDC $dll[1] = DllOpen ( "user32.dll") $dll[2] =…
Maeko
  • 33
  • 2
3
votes
1 answer

AutoIt assembly code to print a message

I'm making a program to show hello world using AutoIt. The assembly code was used in examples for other languages but not AutoIt. The code is: char code[]…
Sir Jack
  • 227
  • 3
  • 15
3
votes
1 answer

Listen for UDP multicast packets

My AutoIt script should receive UDP multicast packets sent to 239.255.250.250:9131. But it doesn't work and I see no option to specify a UDP multicast address for UDPBind(). UDPBind() in below code returns error 10049 (invalid…
Urmil Parikh
  • 323
  • 3
  • 11
3
votes
1 answer

Continuously test throughout execution

My AutoIt script automates a mobile game. Sometimes the game will disconnect (due to an error or bad WiFi signal), causing the script to get off track and stop working correctly. I'm trying to test when/if this occurs, to then restart from the…
3
votes
1 answer

Try and catch alternative

Is there an alternative to Try and Catch in AutoIt? I wonder if there is something similar.
jxtz
  • 51
  • 8