geting window position

marko
Unregistered
 
Post: #1
Hi,

I have problem to get main window position of another application on screen.
I need to have two applications and from one obtain main window of another application. Is it posiblle? On Windows you can get handler for window by process ID. Is something similar on MAC?

Thanks

Marek
Quote this message in a reply
Oldtimer
Posts: 834
Joined: 2002.09
Post: #2
What API are you using? I suspect that you can call into the window server...
Quote this message in a reply
marko
Unregistered
 
Post: #3
Hi,
I need to use Carbon API, so I'm planning to use LaunchApplication (LaunchPBPtr LaunchParams); function for starting another application.

Marek
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  new position with vector pander007 3 5,094 Oct 13, 2007 11:49 AM
Last Post: Nevada
  Calculate mouse position in opengl MACnus 1 4,719 Nov 8, 2006 01:02 PM
Last Post: akb825
  Using a matrix to generate a new vector position imikedaman 6 7,201 Jul 16, 2006 01:17 PM
Last Post: imikedaman