Jump to content
Sign in to follow this  
EyotaSoftware

AutoITx Active Control Handle

Recommended Posts

EyotaSoftware

Hi,

I'm new to AutoIT and although it seems perfect for my needs I am short on time and having a little trouble getting what I need from it. I have initially started scripting in .au3, but after discovering that I can use the AutoITx control have opted to try what I need from .NET, however I cannot work out how to find out what the active control is after sending a random click from AutoIT.

Basically I want autoIT to click around randomly on another application and then I want to be able to identify what has been clicked, ie a button, textbox or dropdown etc.

Can anyone point me in the right direction to do this?

Share this post


Link to post
Share on other sites
Authenticity

Before you click something you can get the coordinates of the mouse and use the WindowFromPoint() API function and then GetClassName() API function if you need it's class name.

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  

×