chrisv Posted April 14, 2009 Share Posted April 14, 2009 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 Link to comment Share on other sites More sharing options...
exodius Posted April 14, 2009 Share Posted April 14, 2009 (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 April 14, 2009 by exodius Link to comment Share on other sites More sharing options...
Mat Posted April 14, 2009 Share Posted April 14, 2009 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... AutoIt Project Listing Link to comment Share on other sites More sharing options...
chrisv Posted April 14, 2009 Author Share Posted April 14, 2009 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. Link to comment Share on other sites More sharing options...
WideBoyDixon Posted April 14, 2009 Share Posted April 14, 2009 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 [center]Wide by name, Wide by nature and Wide by girth[u]Scripts[/u]{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}[u]UDFs[/u]{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~[/center] Link to comment Share on other sites More sharing options...
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