Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

capture window of application started in program

Status
Not open for further replies.

Themuppeteer

Programmer
Apr 4, 2001
449
BE
Hello,

I want to start an application from within my program,
and I want to grab the window id of the application,so I have total control of that application (then I can reparent it,move it etc. from within my program).

There is one way that works,that is:
* executing the application
* waiting for the next exposure event.
* grab that id.

The problem with this one is that it is to slow, you actually have to wait for the next exposure event before you can continue with the program. I should also say that multiple programs are started,so you should wait for the event becuse otherwise you are not sure that e.g
the 1st exposure event you get is the one from the 1st application started (it might as well be the one from the second application that executed faster than the 1st one)

Can I perhaps start an application in a window instead of on the screen ? then I could move that window and I'd also have control...but how ?

Who has any ideas ?

thnx. Greetz,

The Muppeteer.

themuppeteer@hotmail.com

Don't eat yellow snow...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top