Hack Forums
[.NET] [Solved]Getting Class Of Focused Window? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [Solved]Getting Class Of Focused Window? (/showthread.php?tid=5151682)



[Solved]Getting Class Of Focused Window? - AnonCensored - Jan 29, 2016

There's a project I've been working on for awhile now it's basically near completion but there's one thing i just cant seem to get right and that's getting the class name of a window so basically what I want is to get the class name alone for example Notepad's class name would be "Edit" < that specific part is all i want I'm currently using GetForgroundWindowInfo to get the window constantly so If i focus on notepad it would give me

[Image: VUefL82.png]

which is good but now all i need is that "edit" part if it makes sense ? I've literally searched all over google and nothing is what i want


* - Odus - Jan 29, 2016

'Edit' is a child window, you'll want to pinvoke EnumChildWindows.


* - AnonCensored - Jan 29, 2016

(Jan 29, 2016 03:21 PM)Odus Wrote:  'Edit' is a child window, you'll want to pinvoke EnumChildWindows.

thank's I'll check it out