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

Autoit - Read Java Exception from console

I want to be able to output the result of a commandline input to a AutotIT GUI, which I already managed to do. This command contains a java call. Unfortunately I am not able to bring possible Java exceptions, like: 10:20:10,313 INFO - Initiate…
Flayckz
  • 77
  • 1
  • 9
-1
votes
1 answer

Fetching specific text from a dialog box using autoit

I want to get text from a dialog box. I am getting the title from the dialog box using winGetTitle() function. My code in autoit is as follows: $pId = Run("C:/foldername/Dialogbox.exe") Local $hWnd = WinWait("[CLASS:#32770]", "", 10) Local…
Prachi
  • 11
  • 4
-1
votes
1 answer

How to redefine system-wide shortcuts in AutoIt?

On Windows, when you press Win+f, the Windows Search utility will pop up. I want to redefine this short cut and point to another program (yes, it's also a search utility, everything). I tried the following code but it doesn't work. ; open…
Just a learner
  • 26,690
  • 50
  • 155
  • 234
-1
votes
1 answer

resolve multiple conditions problem in autoit

I am working on a program in autoit. Unfortunately, I am getting problems in the following multiple conditions phase: Here is my full code: My code: #include #include Example() Func Example() ; Create a…
DREAMER
  • 1
  • 2
-1
votes
1 answer

how to pass parameters with spaces to autoIT run command from selenium

String cmc = "D:\\fileFolder\\File Name-" + CurrentDate() + ".xlsx"; String autoitexec = "D:\\AutoITScripts\\AttachFile.exe" + cmc; Runtime.getRuntime().exec(autoitexec); Above code is my current code. I am passing autoIt script location and file…
Nagadeep
  • 1
  • 1
-1
votes
1 answer

Run function doesn't execute program

$pid = Run('"' & $executable & '"' & $flags & ' "' & $somefile & '"', @SW_HIDE, $STDOUT_CHILD+$STDERR_CHILD) The AutoIt Run() function doesn't work, $pid is set to 0 and @error to 1.
BotOfWar
  • 588
  • 5
  • 14
-1
votes
1 answer

How can I run AutoIT scripts from powershell

I have this script: #Region #AutoIt3Wrapper_UseUpx=n #EndRegion Global $SUPERBARPOS $SUPERBARPOS = WinGetPos("[CLASS:Shell_TrayWnd]") MsgBox(0, "Testing...", _ "Taskbar's attributes: x:" & $SUPERBARPOS[0] & _ " y:" & $SUPERBARPOS[1] & _ …
BananaMaster
  • 377
  • 6
  • 15
-1
votes
1 answer

Automatic clicking on java program buttons

So I need to automate some button clickings on a java program. I tried ahks/autoit's controlclick but it doesn't really work (normal clicks do work, but I require no mouse movement). I tried to get some information from window detective / window…
-1
votes
1 answer

Not able to run the recorded autoI script

"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /ShowGui /in "C:\Program Files\AutoIt3\SciTE\hellsoft.au3" +>10:18:52 Starting AutoIt3Wrapper v.2.0.1.24 Environment(Language:0409 Keyboard:00000409 OS:WIN_XP/Service Pack 2 …
madhu
  • 1
  • 1
-1
votes
2 answers

Copy range of cells from Excel

I'm trying to copy some cells from Microsoft Excel to another program using AutoIt, but I can just copy one cell at a time. Is there a way to copy a group or range of cells? My code: Local $Resultcpf = Excel_RangeRead($oWorkbook, default,…
-1
votes
2 answers

How to write date and time to a file name?

My AutoIt script doesn't work. It should rename files by actual date and time. #include #include FileMove("C:\file.csv", "C:\file" & _NowDate() & _NowTime() & ".csv") There is no syntax error, but the file isn't renamed. I…
-1
votes
1 answer

Autoit click on current cursor position

I have a swing ui with text box and button. I want to enter values in text box and click button using Autoit. What I did was Send("textvalue") Send("{TAB}")//This will move to the button I tried Controlclick method after it. But it not working. Is…
Santhucool
  • 105
  • 1
  • 1
  • 10
-1
votes
1 answer

Call autoit script from Python Script

I have a python script that uses selenium to go to the bottom of a web page, www.tradingview.com/screener. Once it's at the bottom of the page, I need to use an auto it script I made to click on a save button. Both the python script and the auto it…
J R
  • 185
  • 1
  • 1
  • 12
-1
votes
1 answer

AutoIt: Send left/right key with the returned value of inputBox

Is it possible for me to use a Send("{LEFT}") and Send("{RIGHT}") with the use of the value of my inputBox? My code is: $input = InputBox("Brightness", "Set Brightness to:", "", " M", -1, -1) _UIA_action($oUIElement,"setfocus");focus on my…
Yay
  • 3
  • 7
-1
votes
1 answer

How to read value from slider control?

I used simplespy.au3 to target a slider control in the Windows settings window using _UIA_action(). Asking the user to input a value I send left and right keys for the slider to move. But I don't know how to get the current value of my slider. I…
Yay
  • 3
  • 7