Click to See Complete Forum and Search --> : how can i collect all window class name kinds?


khuongrock
November 8th, 2006, 01:51 AM
Hi all,

i'm a newbie in the coding world. Now i'm facing with a trouble that how can i collect all window class name kinds (like WindowsForms10.Window.8.0.2bf8098,WindowsForms10.Window.8.app.0.2bf8098, WindowsForms10.Window.8.app.1,WindowsForms10.Window.8.app.2..etc.). Because i have a capture tool and i want to map the windows or controls have winclass and wintype with myself definition class like the example below:
winclass wintype myclass
Ex: WindowsForms10.BUTTON.appb checkbox checkbox

But my problem is the <hexappdomainhash> element ('appb' in above example) in window class name form maybe change,it's not stable. So i cannot have the general way in my mapping.

Have anyone please show me where i can collect all of window class name kinds?

best regards,

khuong.ngo

Krishnaa
November 8th, 2006, 02:21 AM
No, you can't collect such data in one shot, as you don't know class name before the window is created. You can get the class name from open/hidden window by using GetClassName (http://windowssdk.msdn.microsoft.com/en-us/library/ms633582.aspx) function.