Jump to content

Can AutoIt be used to automate a software?


Recommended Posts

I already have a software which is used for calibration of electrical equipments. The software came along with the dll s and it is written in C#. 

My question is: Is it possible to control any software via AutoIT?  

For instance: Calling the button click functions (not using Macro) 

I just downloaded AutoIT, so before I learn the features I wanted to make sure if I can do it.

Thanks in advance!

Link to comment
Share on other sites

Thank you for replying back.

I have been using the ControlClick function but it does nothing (which means I am doing soemthing wrong).

Do I need to no the code within the Dll for me to no the ControlID. Or Is it just suppose to be the name of the button which is on the User Interface of the application running?

Link to comment
Share on other sites

You can automate an application via GUI by simulation user input.

Or the application provides a COM interface so you can use methods and properties to automate the application.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Try putting the ControlClick function to a variable and print it like this:

$Value = ControlClick(clickstuffhere)
consolewrite($value & @lf)

The value will either be 1 or 0.  If it's 1, then autoit clicked, but nothing happened.  If it's 0, then the controlclick function failed.

EDIT:

Here's the online help for ControlClick if you haven't seen it yet.

http://www.autoitscript.com/autoit3/docs/functions/ControlClick.htm

Edited by Colyn1337
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...