Re: WindowID to front
Re: WindowID to front
- Subject: Re: WindowID to front
- From: Benedikt Iltisberger <email@hidden>
- Date: Mon, 28 Feb 2011 11:14:50 +0100
Hey Peter and Uli,
@Peter:
and this is possible using the windowID? I used it a couple of weeks ago and during this time I was talking to
the apps using "tell [APP_NAME] ..." But I need to bring a window to front and not a process.
And I already saved the windowID I obtained from CGWindowListCopyWindowInfo.
@Uli:
I am already working with the Accessibility API but I don't have a chance of setting the frontmost window if I only have
the window-server's windowID.
Thanks for your suggestions and I would be very happy if somebody has an idea how to solve this problem.
Cheers
Benedikt
On 28.02.2011, at 10:33, Uli Kusterer wrote:
> On 27.02.2011, at 13:55, Benedikt Iltisberger wrote:
>> But how can I now set the selected window ID to front?
>>
>> (Note: It is a window of a foreign application which I want to set to front. My own app wouldn't be a problem.)
>
> Not sure you can use that information for anything (I don't think AppleScript deals in Window IDs, but that may have changed since I last had to put up with it). You may have more luck using the accessibility APIs to both list the windows and then bringing one to front.
>
> Cheers,
> -- Uli Kusterer
> "The Witnesses of TeachText are everywhere..."
> http://www.zathras.de
>
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden