Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Send click to window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Send click to window

I finally got clicks forwarding to another process. I made an example
project, available here:

NOTE: You have to setup the project first - in the Globals.h file,
define 'PID' to the process that you want clicks to be forwarded to,
and 'WID' to the window ID of the window in that process. Both these
values can be retrieved from Quartz Debug (Tools > Show Window List).
I tested the event forwarding with Safari.

When you run the project, make the 'event-forwarding' window the same
size as the event-receiver window. Then slightly offset the
event-forwarding window from the receiving window. Click away inside
the forwarding window, and notice how mouse clicks, mouse drags, and
right-mouse clicks are all forwarded to the other process.


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)

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 >Send click to window (From: Benjamin Mollenhauer <email@hidden>)
 >Re: Send click to window (From: Dave Keck <email@hidden>)
 >Re: Send click to window (From: Nate Weaver <email@hidden>)
 >Re: Send click to window (From: Dave Keck <email@hidden>)

Visit the Apple Store online or at retail locations.

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.