EyotaSoftware Posted April 20, 2009 Posted April 20, 2009 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?
Authenticity Posted April 20, 2009 Posted April 20, 2009 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now