Jump to content
Sign in to follow this  
navsrana

Can AutoIt be used to automate a software?

Recommended Posts

navsrana

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!

Share this post


Link to post
Share on other sites
mrflibblehat

Yes it can, thats what AutoIT is for :), Have a look at ControlClick here

you can get the control information by using the window info tool packaged with AutoIT

Edited by mrflibblehat

[font="'courier new', courier, monospace;"]Pastebin UDF | Prowl UDF[/font]

Share this post


Link to post
Share on other sites
navsrana

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?

Share this post


Link to post
Share on other sites
water

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Colyn1337

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

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  

×