marcushe Posted January 27, 2010 Share Posted January 27, 2010 (edited) in a script,Can i get all the controls in a window ? I need to identify which kind of window it is by its all controls: such as ,A form with 2 button and processname is "XXXX" is form1,3 button whose size are bigger than 165X37 and processname is "AAAA" is form2 Thus what functions i need are: 1. Get all controls 2. What kind of control is it 3. How big is it 4. Its position 5. Its controlID Edited January 27, 2010 by marcushe Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 27, 2010 Share Posted January 27, 2010 Start from WinGetClassList() (see help file). Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
marcushe Posted January 28, 2010 Author Share Posted January 28, 2010 Start from WinGetClassList() (see help file).Seeems no perfect solution here. WinGetClassList only return all class names ,nothing else. So How can i get control id for each one?Ai..................If Autoit is free, where can i find the source code, maybe i wan't to modify the 'WinGetClassList' function Link to comment Share on other sites More sharing options...
picea892 Posted January 28, 2010 Share Posted January 28, 2010 Yes. rewriting Autoit is your best and easiest solution. Link Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 28, 2010 Share Posted January 28, 2010 Seeems no perfect solution here. WinGetClassList only return all class names ,nothing else. So How can i get control id for each one?By iterating the ClassNameNN in a loop. For example, if the list includes class "SysListView32" you would test "SysListView321" through "SysListView3299".If Autoit is free, where can i find the source code, maybe i wan't to modify the 'WinGetClassList' functionYou have confused "free as in beer" with "free as in speach". AutoIt is of the "free as in beer" variety, and stopped being open source a long time ago. Sources of the last open source version is still available on the download site, however. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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