Basically Ive searched for hours to try to find out how to find all active windows, like firefox, paint etc. Windows that are listed in the taskbar. Can someone provide some insight?
Printable View
Basically Ive searched for hours to try to find out how to find all active windows, like firefox, paint etc. Windows that are listed in the taskbar. Can someone provide some insight?
Here is a beautiful example.. see if this helps...
http://www.freevbcode.com/ShowCode.asp?ID=701
That example won't help me, it gets things that aren't windows and I only need windows. Even windows with captions still gets extras
Have you seen this?
http://www.vbforums.com/showthread.php?t=148330
or
http://www.vbforums.com/showthread.php?t=412890
I usually use something like this:
vb Code:
Dim hWndTmp as long ' Get first window on the Desktop hWndTmp GetWindow(GetDesktopWindow(), GW_CHILD) Do While (hWndTmp <> 0) ' Add w/e logic ' Get next window hWndTmp = GetWindow(hWndTmp, HWND_NEXT) Loop