Jump to content
Sign in to follow this  

Running autoit script on currently running software without hindering current UI of software

Recommended Posts



I have an autoit script which interacts with an already running software on Windows. The software is something like a restaurant management/Point of Sales software. Typically to generate performance reports from this software there are a few series of steps that need to completed by a user by navigating through clicks and buttons on User Interface of this software. The autoit script would do this report generation process automatically.

The challenge I am facing is, I want to run the autoit script even when the software is being used by some user. Eventually, using Task Scheduler I would automate the periodic execution of autoit script. As the software would be in use by someone when this autoit script would be running, I would want that the script doesn't interfere with current operation (as being operated by a user). Currently when the script runs, it just goes through all the steps on the UI of the software itself thus hindering the user's current actions and changing the window in focus as per the requirement of the autoit code. I am mainly using ControlClick as below in my script:

    ControlClick("Restaurant Point of Sale", "", "[CLASS:POSButton; INSTANCE:34]")
    ControlClick("Restaurant Point of Sale", "","","left", 1, 85, 210)

I have browsed a lot of content and many solutions under the category "running autoit script in background/silently" and they don't seem to work or are very confusing. I would really appreciate some guidance on this. Thanks in advance.

Note: Starting a parallel instance of the software and executing the autoit script on that instance is not an available option.

Share this post

Link to post
Share on other sites

@iamaoxdo, welcome to the forum. Automating the GUI of an application is just that, programmatically walking through the same steps you would do if you were in front of the screen yourself. If you want to be able to emulate some of the same processes the application goes through, without actually clicking buttons in the GUI, you're going to have to find out if it has an API you can interface with directly.

√-1 2^3 ∑ π, and it was delicious!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.