How do I extract a Window Title if I know the Process Name?

itapa
10-03-2009, 01:13 PM
I want to get the Window Title from a process name because the Window Title always changes and the process name doesn't. Is there a way to do that? Also, it won't open twice, so it's okay.



(Input) Process Name.exe ------[Chemistry Takes Place]--------> (Output) Wintow Title




Thanks a lot and have a great day.

vb5prgrmr
10-04-2009, 08:12 AM
Perhaps the long way around is to enumerate through the windows...

http://www.thescarms.com/VBasic/EnumWindows.aspx

and once you have the input equaling the process name, then go get the rest of the information, or perhaps that example will show you a way to work backwards.



Good Luck

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum