Sign in to follow this  
Followers 0
navsrana

Can AutoIt be used to automate a software?

5 posts in this topic

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



#2 ·  Posted (edited)

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

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

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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  
Followers 0