autoit

What's the best automation or scripting tool to automate repetitive tasks with applications?

I realise you can script Microsoft Office apps, but I'm looking for something more general that I can apply to other apps, such as Adobe Acrobat, web browsers and other apps with no scripting ability. I've used AutoIt but it's a bit clunky, especially when trying to debug why a script fails or stalls. Also, getting the timing of actions...

How can I mimic Visual Studio's "Ctrl-K, C" two-step macro behaviour using Autoit / Autohotkey?

I'm trying to set up Autohotkey macros for some common tasks, and I want the hotkeys to mimic Visual Studio's "two-step shortcut" behaviour - i.e. pressing Ctrl-K will enable "macro mode"; within macro mode, pressing certain keys will run a macro and then disable 'macro mode', and any other key will just disable macro mode. Example - wh...

iTunes COM interface - obtain song added to library?

This isn't about a specific language, since it is more about the iTunes COM interface. I have managed to add a file to the library with .AddFile(), but now that the file is there I'd like to read some details about it such as the artist, song, and album. Since the song doesn't automatically play, I can't really use CurrentTrack() to re...

How do I recognize a drag-select with autoit

I'm writing an automation script with autoit: http://www.autoitscript.com/autoit3/index.shtml. In the process I need to take a screenshot of a user selected area. How can I recognize the mouse-drag select operation with Autoit 3? I basically need some way to get the coordinates of the selected rectangle... ...

Unattended Processing - Application Automation

I'm looking for information [I hesitate to infer "Best Practices"] for Automating Applications. I'm specifically referring to replacing that which is predictably repeatable through traditional manual means [humans manipulating the GUI] with something that is scheduled by the User and performed "Automatically". We use AutoIT internally ...

Can AutoIt scripts be executed as a service for GUI actions?

I'm using AutoIt to start and automate some clicks on special GUI application. I need to activate the script each hour. Will AutoIt script work when used as a service? UPDATE: Referring to the first answer. The script will be run as a service (not scheduled task) because don't want to use task scheduler on server. ...

Scripting a GUI from within a Windows Service?

I would like to automate a windows app that comes only with as a GUI app (no support for command-line). The automation itself is relatively straightforward with AutoIt. Yet, I am wondering, is-it possible to launch the Windows App from with a windows service (that would simply call the AutoIt script)? ...

Get COM object for embedded IE browser with ruby win32api

Alright this is a pretty complicated problem but it looks like the hard work has been done already by the autoit IE.au3 project. So now it just takes someone experienced with ruby and win32api, and possibly autoit as well to figure out how to translate a function written in IE.au3 to ruby. The end result is I want to use Watir with an em...

AutoIt for Java

I need to automate UI testing of a software that my module is plugged in. I do not have an access to code of the host so I need something like AutoIt. Since AutoIt does not work with Swing, is there any AutoIt like GUI automation tool for JAVA based applications? ...

How To... Sort 4 x 1D arrays?

I have four arrays all containing related data, Data Example:= (Array 1 | Array 2 | Array 3 | Array 4) R.E.M.|In Time: The Best Of R.E.M. 1988-2003|album:6G5BGhEiLvck3kvKpSYw2y|Rock Nick Drake|Family Tree|album:2euLAROPTmXDIDuU3qVMkf|Folk Sonic Youth|Dirty|album:0QPkL6ap8riBoQ5xN8YDR3|Noise Rock I would like to sort all arrays; filt...

How do I take keyboard input in AutoIt?

I want to write a script in AutoIt, which can take automatic input from the keyboard, lets say A-Z, without user intervention. Is this possible? ...

Please Recommend a Simple Automated GUI recording application?

I need to have an application simply record mouse gestures and keyboard strokes that will then be able to play this recording back. I will run this on a few computers on the network to simulate multi-users. The app does not need to create any output scripts or code I just want to run the recording over and over again. I'm not sure if...

C# - Autozip files in a folder based on Year-Month

IT has been tasked with reducing the file-server usage rate so I'd like to do my part my compressing old files(ie Excel/Access/Txt). We have some folders that contain thousands of files so I don't want to just zip the whole directory into one large file - it would be preferrable to have a number of smaller files so that it would be easi...

AutoIt3 - How to branch if a window pops up?

I am trying to write an AutoIt3 script to go through a wizard to setup a program. At one point, depending on what has already been installed on the machine, it may or may not pop up another dialog saying something like "This already exists.. what would you like to do?". Then I would make the script handle that dialog and then continue....

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 called "Joop" I do: ControlClick("Joop","","[CLASS:DirectUIHWND; INSTANCE:2]","Left",1...

Choosing a Windows Automation script language. Autoit vs Autohotkey.

I need to choose a windows automation program. Which one do you recommend? AutoIt, AutoHotkey, others? I have read http://paperlined.org/apps/autohotkey/autoit_and_autohotkey.html , interesting history but without a clear recommendation. Searching on google leaves a winner (around 312k hits for AutoHotkey Windows vs 482k hits for AutoIt...

How can I use Autoit to close all javascript alerts and confirmations that may appear?

I am testing in selenium and I have a bunch of stuff that happens on page load. I found out about autoit, and I was thinking that it could handle all javascript dialog issues. I was searching around the web for some autoit script that could handle this... Other options would be helpful as well! I don't necessarily need all the code, b...

Changing combobox value of minimized third party application via hotkey

Hi, I have a piece of closed-source third party windows software which consists of only one window and is minimized almost all the time. I'd like to be able to change the selected item of a combobox in that window via a system-wide hotkey. If possible, I'd like to keep the third party app minimized in the process. I guess this should b...

WinPE 2.0 (Vista) - Looking for a solution for BrowseForFolder using VBSCRIPT & HTA application

Hi, I am creating an HTA application to be run inside of a WinPE 2.0 environment. The purpose of this HTA app is to prompt the user to select a back-up location. I am currently using BrowseForFolder to prompt the user folder location. Script works fine in Vista. However, this does not work in winpe 2.0 - and a dialog appears with n...

Twitter oAuth posting through PHP

I'm currently writing a program which uses Twitter to display your #nowplaying track from iTunes. As of now, we're using the basic Twitter authorization, however we'd like to use the oAuth implementation to make it better. The language I'm using (AutoIt) does not really have the features needed to create a working oAuth system (unless a...