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
4
votes
1 answer

Difference between Run() and ShellExecute()

I want to execute something in a shell/terminal on Windows via AutoIt. And I know that there are two ways of doing it. For example: Run(@ComSpec & " /c " & $myCommand, "", @SW_HIDE) ;and ShellExecute($myCommand) I don't understand the difference;…
mtzE
  • 57
  • 1
  • 6
4
votes
1 answer

How do I get the cause of a copy failure in AutoIt?

The AutoIt FileCopy method defines the following return values: Return Value Success: 1. Failure: 0. Obviously, when the file copy operation fails, I'd like to tell the user why it fails. How do I get that information?
Heinzi
  • 167,459
  • 57
  • 363
  • 519
4
votes
2 answers

AutoIt: Activate and choose elements context menu in ControlTreeView

I want to do automatic installation by AutoIt. I cant activate and choose elements menu on the "select features" step. I can choose any element in the "tree". For it I use the function ControlTreeView($windowId, "", $h_tree, "Select", "#2") How to…
alexey.chumagin
  • 630
  • 5
  • 16
4
votes
1 answer

AutoIt _Timer_SetTimer - Additional callback arguments

Using AutoIt 3, is there a way to pass additional arguments to the callback method in the _Timer_SetTimer function? Here's my use case (main loop) : For $item In $items _Timer_SetTimer(0, $timeOffset, "MyMethod") Next Callback method : Func…
Thrax
  • 1,926
  • 1
  • 17
  • 32
4
votes
0 answers

Running AutoIt script using psexec

I am trying to automate installation of an exe file on remote systems. My AutoIt script automates the installation. If I run this script from the system where I need to install, everything works fine. Problem occurs when I initiate the script from a…
user145078
  • 241
  • 2
  • 3
  • 8
4
votes
6 answers

I want AutoIt to activate a particular tab in Firefox. How can this be done?

I have several tabs open in Firefox. I want AutoIt to activate a particular tab in Firefox. How can this be done?
neuromancer
  • 53,769
  • 78
  • 166
  • 223
4
votes
2 answers

Can AutoIt scripts run as a scheduled task while not logged in?

I am using Ruby/WATIR/AutoIt to automate a task via Task Scheduler which runs fine as long as I am logged in, but soon as my account is locked or I logout, the script stops functioning. When I log back in it is where AutoIt is supposed to handle a…
muddywater
  • 41
  • 1
  • 2
4
votes
3 answers

Refresh a GUI using AutoIt

I am making AutoIt code and one of the items on the GUI needs to be updated every few seconds, and I can seem to get it to do it. To make it simple I have written some code that shows the problem: $num = 0 GUICreate("Example") $Pic1 =…
09stephenb
  • 9,358
  • 15
  • 53
  • 91
4
votes
3 answers

Autoit add a line of text to an editbox

I am working on an AutoIt GUI, just a little example box for myself and I was wondering how I would go about adding another line of text to an editbox.. Currently, (when I press 'Button 1') the editbox displays: 'Button 1 was pressed' but…
4
votes
2 answers

Least CPU intensive loop

This loop is very CPU intensive: While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE GUIDelete() Exit Case $control1 Func1() Case $control2 Func2() …
Levi
  • 1,921
  • 1
  • 14
  • 18
4
votes
3 answers

Using control send on windows live messenger For auto typing text

Hi i want to make a sort of a bot for WLM, But the normal controlsend in autoit wont work the basic question is how can i send a text to the windows live messenger window Without activating it? Example: There is someone in WLM with the window active…
matthy
  • 8,144
  • 10
  • 38
  • 47
4
votes
1 answer

Which registry keys for Active X options?

I want to programatically set some registry keys. As part of an install routine, I want to enable all Active X options - in the trusted zone. These options are at HK_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2 (2…
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
4
votes
1 answer

Image search and transparency

I need to find an image (detect text in game) using transparency (the background is changing every few seconds). My script: #include HotKeySet("s", "Start") $x = 0 $y = 0 Func Start() $Search =…
Marcin Kostrzewa
  • 565
  • 4
  • 11
  • 24
4
votes
1 answer

Integrate Autoit Scripts with Selenium Webdriver

Could any one guide how to integrate an Auto IT script with in selenium web driver? I am using a applet window embedded with in browser. So, using Auto IT for keystroke & Mouse action. I don't want to run the Auto It script as an .exe file in…
3
votes
2 answers

Execute process/program silently

I am creating a wpf application that needs a prerequisite. If that prerequisites is not met then I ask the user if he will like to install the prerequisite that happens to be: Microsoft Visual C++ 2010 SP1 Redistributable Package. So if the user…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470