Jump to content

ClassNameNN


Recommended Posts

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

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

You 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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...