Locating an other application's window in carbon...

konan

Registered
How can I locate a window from another application based on it's title (must be able to detect partial title)? Once I locate the window, how can I change it's title? Is it indeed possible for one carbon application to do this to another's window?

WindowRef GetWindowByPartialTitle(char *PartialTitle)
{
for each window open
{
get window title
if title matches partial title
return Window
}
return NULL;
}

void ChangeWindowTitle(WindowRef Window, char *NewTitle
{
change the window title
}
 
Back
Top