View Full Version : Getting all window objects in the desktop

01-17-2003, 05:18 PM
Is there a way to get the handle of all the windows in the desktop. I need to loop through all of them and get their title and do some stuff.
I also need to get the window which has the focus.

01-17-2003, 07:59 PM
Geeze - I thought I will get a bunch of replies.

In VC++ you can do this using FindWindow or EnumWindows.
Yon can also use GetDesktopWindow and GetWindow to loop thru' the children.

Can any one say that something liks this is impossible using JavaScript?


Roy Sinclair
01-17-2003, 08:08 PM
Nope, providing that sort of capability would be a gross violation of the user's privacy. No web site you're looking at should be able to find out what else you have open on your PC.

01-18-2003, 01:25 AM
I hear you can write something like that using Visual C++ (not to mention other languages). Can't do it in javascript though... ;)