• 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
mouse Event Taps, CGEvent and destination control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mouse Event Taps, CGEvent and destination control


  • Subject: mouse Event Taps, CGEvent and destination control
  • From: cocoa nick <email@hidden>
  • Date: Tue, 27 Jul 2010 17:23:01 +0300

Hello
Is it possible to get a destination control's Accessibility API's AXTitle
(or another distinguishing characteristic - i need to know, if the clicked
control was Microsoft Word's "Document Pane" (it is AXView object, in terms
of accessibility)) from the callback function, that is called whenever user
clicks with mouse in a "foreign" application's windows?
I have installed CGEventTap on mouse-click events in that "foreign"
application, but all i can extract within the callback function - is only a
mouse button and cursor's coordinates. I was wondering, if i could extract
from CGEventRef (that is passed as a parameter to my callback function) the
control's.
I can retrieve what window the user clicked on (by the means of
Accessibility API i can see what window has become active after the click)
but i can't know what the control was clicked.
Does that opaque CGEventRef contain any info about destination control? Or
it is impossible?
Thanks a lot for any response!
_______________________________________________

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

  • Prev by Date: Dock-like application
  • Next by Date: RE: Truncating UIActionSheet labels
  • Previous by thread: Re: Dock-like application
  • Next by thread: help with methods
  • Index(es):
    • Date
    • Thread