hydroxide Posted May 22, 2009 Share Posted May 22, 2009 Is it possible to retrieve the ClassNameNN of a control without using the ControlGetFocus function? Is ControlGetFocus the only function that returns ClassNameNN? I'm enumerating through controls on UI to get their ClassNameNN. However, setting focus on a disabled control is not possible, so I can't get their ClassNameNN. How does the AutoIT Window Info tool do the same (when the mouse hovers over the control).. any idea? NOTE: My problem here is to get AutoIT to retrieve the ClassNameNN, and not supply it after reading it from AutoIT Window Info. Example: Consider the Replace window in Notepad. I can navigate through Find what (Edit1), Replace with (Edit 2), Match case checkbox (button2) and Cancel button (button6), but I've missed out on Find Next, Replace and Replace All since they are disabled. Any help? Thanks Link to comment Share on other sites More sharing options...
PsaltyDS Posted May 22, 2009 Share Posted May 22, 2009 Is it possible to retrieve the ClassNameNN of a control without using the ControlGetFocus function?Is ControlGetFocus the only function that returns ClassNameNN?I'm enumerating through controls on UI to get their ClassNameNN. However, setting focus on a disabled control is not possible, so I can't get their ClassNameNN.How does the AutoIT Window Info tool do the same (when the mouse hovers over the control).. any idea?NOTE: My problem here is to get AutoIT to retrieve the ClassNameNN, and not supply it after reading it from AutoIT Window Info.Example:Consider the Replace window in Notepad.I can navigate through Find what (Edit1), Replace with (Edit 2), Match case checkbox (button2) and Cancel button (button6), but I've missed out on Find Next, Replace and Replace All since they are disabled.Any help?ThanksYou can use WinGetClassList(), then iterate through $Class & $NN where $NN = 1 to 100 in a For/Next loop. Search the forum, it's been done before. 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...
Moderators big_daddy Posted May 22, 2009 Moderators Share Posted May 22, 2009 Find Classes By Text Link to comment Share on other sites More sharing options...
hydroxide Posted May 22, 2009 Author Share Posted May 22, 2009 Sweet! .. thanks for the replies .. will check em' out ! 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