Results 1 to 3 of 3

Thread: Waiting for a window

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263

    Waiting for a window

    I have an app that's running a loop to wait for the task manager to appear (class "#32770", title "Windows Task Manager"). This works just fine, but I would like for my program to use as little resources as possible - I was wondering if I could use WaitForSingleObject to get this done, but the problem is my application isn't starting the task manager - windows is - so I don't have its process id. I realize I could go out and get it, but I would still have to run some kind of loop to wait for the window to appear to get it's id.

    Simply, I want a nice loopless (or minimal resources used) method of knowing when a hwnd is loaded, where my app isn't loading the hwnd.

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    416
    i dont think its possible :/

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Set a window creation hook.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width