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

Match double hyphens in comments of malformed XML

I'm to parse XML files that do not conform to the "no double hyphens in comments" -standard, which makes MSXML complain. I am looking for a way of deleting offending hyphens. I am using StringRegExpReplace(). I attempted following regular…
5
votes
1 answer

Programmatically attain Office 2013 Product Key

I've just started working on a task assigned to me by the IT department at work, to create a program that can read the product keys used to install Microsoft Office 2013 and assign it to the computer name, so they can store it in a database in case…
DeeKayy90
  • 837
  • 1
  • 13
  • 27
5
votes
1 answer

AutoIt to Python encrypt/decrypt

I am trying to communicate from AutoIt with a Python TCP server using encryption, but I think there's something wrong with my algorithms since the results of both encryptions/decryptions are different: AutoIt: #include Global $key =…
Andreas Hinderberger
  • 1,505
  • 23
  • 41
5
votes
1 answer

Saving only visible cells from Excel to CSV

How can you save only the visible cells of an xls as a CSV? I have a large .xls file that I would like to make available to some old UNIX Perl scripts. I have some code that will watch the file for a modification, regenerate the CSV files and FTP…
Copas
  • 5,921
  • 5
  • 29
  • 43
4
votes
3 answers

AutoIT, or User32 button clicking working sporadically

I'm trying to automate the testing of an application, and I'm stuck on an issue that I'm struggling to troubleshoot. The application has standard windows buttons, and I've tried with both AutoIT and the User32 dll to click some of these buttons.…
AlishahNovin
  • 1,904
  • 3
  • 20
  • 37
4
votes
2 answers

Default exe file icon changing

I've read I have to add these lines into my .au3…
Cyclone
  • 14,839
  • 23
  • 82
  • 114
4
votes
3 answers

Pause script programmatically in AutoIt?

What function can I use to pause a script in AutoIt? I know I can use sleep like this: Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc But…
JatSing
  • 4,857
  • 16
  • 55
  • 65
4
votes
1 answer

AutoIt with wpf

I have below sample code for my wpf app. I need to fill in text fields of form with strings. Run('AutoItWpfTesting.exe') WinWaitActive("Window1", "") $hHwnd = WinGetHandle("Window1") MsgBox(0, "Message", $hHwnd) …
Anees
  • 885
  • 4
  • 13
  • 31
4
votes
3 answers

How to get base64 encoding the same for AutoIt and PowerShell?

I use Ward's AutoIt Machine Code Algorithm Collection to get base64 encoding of a string in AutoIt: #Include "Base64.au3" Dim $Encode = _Base64Encode("ps") MsgBox(0, 'Base64 Encode Data', $Encode) The result: cHM= PowerShell code to get the…
Just a learner
  • 26,690
  • 50
  • 155
  • 234
4
votes
2 answers

Accessing .au3 file from .au3 file

How can I access a .au3 file in "My Documents/Downloads" folder from another .au3 file? I know how to access the file from the desktop from this code: Run(@AutoItExe & ' "' & @ScriptDir & '\file2.au3"') But I can't access it in "My…
Rizwan606
  • 667
  • 2
  • 8
  • 22
4
votes
1 answer

Running cmd from absolute path has it fail to recognise manage-bde command

I'm trying to use cmd.exe through AutoIt script. When I run(c:\windows\system32\cmd.exe) and try to launch manage-bde the error is not recognized as an internal or external command, operable program or batch file is coming. run(cmd.exe),…
user10057923
  • 43
  • 1
  • 3
4
votes
0 answers

Decrypting a file with PowerShell (encrypted with AutoIt)

I'm rewriting an AutoIt script in PowerShell. A file on a share is generated daily (pw.jpg) by an AutoIt executable using: _Crypt_EncryptFile(pw.txt, pw.jpg, "passphrase", algo) AutoIt documentation references MSDN, I found identically named…
Maximilian Burszley
  • 18,243
  • 4
  • 34
  • 63
4
votes
6 answers

Download a file in IE using Selenium

OK, so I am trying to export a file using Selenium. My browser is IE. When I click on the export button a native windows dialogue box comes up. Image of the pop up I have to click on the Save button. For this I tried using AutoIT but its not…
fatiqnadeem
  • 111
  • 1
  • 1
  • 6
4
votes
2 answers

Executing AutoIt script from command prompt

Is there any way to execute my AutoIt script (.au3 file) from command line?
name_masked
  • 9,544
  • 41
  • 118
  • 172
4
votes
0 answers

Image compare autoit

Is there a way to look for similar images in a folder but of different dimensions or minor differences like say 90% match. I would prefer a sample code or external plugin or any library function (I don't know any library function that works without…