Sign in to follow this  
Followers 0
chrisv

Control ID

5 posts in this topic

I want to send a mouse click command with x y coordinates and follow it wit a command to obtain the control id

AU3_MouseClick(lpButton, iX, iY, 2, 100);

I am trying to read the text in a text box

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Look into the command ControlGetText, and use the AU3Info tool that you'll find in SciTE if you go up to the "Tools" menu to get the Window Title and Control Name Info. (Assuming you've installed the full SciTE package.

Edited by exodius

Share this post


Link to post
Share on other sites

au3info is also in there without scite i think, go to the autoit directory and there should be an au3info.exe.

or my computers different...

Share this post


Link to post
Share on other sites

au3info is also in there without scite i think, go to the autoit directory and there should be an au3info.exe.

or my computers different...

I am aware of Au3Info, however, I would like to get the ControlID programmatically. and as you know the ControlId is different every time you call the application.

I am not aware of any command that provides the ControlId and yet Au3Info readily provides it. There is a good set of control commands and they all require the ControlId. They are rendered unusable if the controId has to be fetched from Au3Info since they cannot be used programmatically. I am wondering if this is an oversight on the AutoIt developers or is it my lack of experience with the program.

Share this post


Link to post
Share on other sites

Strange that the control ID differs every time; that's not normal behaviour for an application. However, you can use the extended methods for specifying a control for example:

ControlClick("[ACTIVE]", "", "[CLASS:Edit; INSTANCE:1]")

WBD

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