Dismiss dialogs from your Windows Services

Automatically Control your AlwaysUp Windows Services with AutoIt

Powerful automation to help you run your program as a Windows Service

AutoIt is a free and very powerful automation utility that enables AlwaysUp to automatically interact with your application running as a Windows Service.

With your customized AutoIt script, AlwaysUp can automatically:

  • fill in forms (such as a prompt for login information),
  • click buttons (such as the common 'are you sure' prompts),
  • dismiss dialogs (such as the error messages unique to your application),
  • perform almost any interactive task that a user sitting at the keyboard would normally have to do.

Your AlwaysUp application can run entirely unattended - even in the face of windows that would normally stop the action when no one is around.

Some useful AutoIt links:


Configuring AlwaysUp and AutoIt

Edit your application in AlwaysUp and activate the "Automation" tab to access the AutoIt settings:


Please review the AlwaysUp User's Manual (PDF) for details on the settings.



Sample AutoIt Scripts

Please feel free to use these scripts for your own applications, adapting them for your unique situations as necessary. Note that in many cases, it may be best to create executables from your scripts using the AutoIt compiler (Aut2Exe.exe) so that sensitive information (such as passwords) are not stored in the clear.

Note: We recently discovered that a few of the AutoIt functions, such as WinWaitActive() and WinActivate(), do not work properly when no one is logged on to the console and there is no "active" window. Hopefully you can use alternative functions as we have done in this sample script. Be sure to test thoroughly!




ClickOK.au3

This script will click the "OK" button on the message box below.

Note: This script will only work for this specific message box and you will have to modify it for others.




AutoLogin.au3

This script will enter a username, enter a password and click the OK button on the "Login" form below.

Note: This script will only work for this specific message box and you will have to modify it for others.




ClickButton.au3

This script will click a button on a specified window. It is invoked with two arguments, the name of the window and the name of the button. It can be used to dismiss the message box below by invoking it like this:

		ClickButton "Error Message" "OK"

Feel free to download the pre-compiled executable (ClickButton.exe) with this functionality and use it in AlwaysUp without having to install AutoIt.




SendEnterKeyToWindow.au3

This script will send the ENTER key to a specified window. It is invoked with one argument, the name of the window. It can be used to dismiss the message box below by invoking it like this:

		SendEnterKeyToWindow "Error Message"
It works because the "OK" button already has focus.

Feel free to download the pre-compiled executable (SendEnterKeyToWindow.exe) with this functionality and use it in AlwaysUp without having to install AutoIt.



Please contact us if you need help setting up AutoIt with your application.

Download & Try it Free!

Download AlwaysUp and Run as a Service Today! Version 15.1 New!

7.9 MB Installer
Over 94,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 19+ years!
 
Compatible with Windows 11 Compatible with Windows Server 2022 Compatible with Windows 10