• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Send click to window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >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>)

  • Prev by Date: static method to create CABasicAnimation: does this create a memory leak?
  • Next by Date: Re: static method to create CABasicAnimation: does this create a memory leak?
  • Previous by thread: Re: Send click to window
  • Next by thread: find out where is a key equivalent assigned
  • Index(es):
    • Date
    • Thread