Re: Send click to window
Re: Send click to window
- Subject: Re: Send click to window
- From: Dave Keck <email@hidden>
- Date: Thu, 9 Apr 2009 14:17:53 -1000
I finally got clicks forwarding to another process. I made an example
project, available here: http://www.docdave.com/clicktest.zip
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.
David
_______________________________________________
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