Get ClassNN from a window handle?
Posted: Tue May 16, 2023 7:08 am
Hi,
Via Windows Api I can only get the class for an element (e.g. a button) from a window handle of that element
So if such an external window has two buttons this would only show "Button" (the normal class) for both of them.
Is there an easy way to get the ClassNN (class + sequence number) instead (for this example it would be "Button1" & "Button2")?
Via Windows Api I can only get the class for an element (e.g. a button) from a window handle of that element
Code: Select all
class = Space(#MAX_PATH)
GetClassName_(hWnd, @class, #MAX_PATH - 1)
Is there an easy way to get the ClassNN (class + sequence number) instead (for this example it would be "Button1" & "Button2")?