Re: CGEventTapCreate & window event information
Re: CGEventTapCreate & window event information
- Subject: Re: CGEventTapCreate & window event information
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 28 Jan 2008 17:30:19 -0500
- Thread-topic: CGEventTapCreate & window event information
on 2008-01-28 3:37 PM, Peter Alshuth at email@hidden wrote:
> I am using the function CGEventTapCreate to receive key down events and was
> wondering if there is any additional information included with this event in
> order to retrieve the window information in which the event occurred (beside
> the process id)? With the AXAPI I can use kAXWindowAttribute/kAXTitleAttribute
> to request the window title.
You'll find all of the event information described in Apple's Quartz Event
Services Reference document, which is all about event taps.
Event taps respond to hardware input events, and the information in the
events they watch is oriented toward the hardware, not toward the user
interface elements the way the Accessibility API is. For example, you can
get the key code of the key that was pressed, and the position of the cursor
on the screen when you hit the key (which might be nowhere near where the
character gets typed), the process ID of the target application, and what
modifier keys were down.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden