Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jan 2003
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Getting all window objects in the desktop

    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.
    thanks

  • #2
    New Coder
    Join Date
    Jan 2003
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

    thanks

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I hear you can write something like that using Visual C++ (not to mention other languages). Can't do it in javascript though...
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •