Re: Snarfing Keyboard Events
Re: Snarfing Keyboard Events
- Subject: Re: Snarfing Keyboard Events
- From: 慧 松本 <email@hidden>
- Date: Mon, 8 Oct 2007 07:51:38 +0900
On 2007/10/08, at 7:17, Seth Willits wrote:
Snapz certainly doesn't run as root, nor does it spawn a dedicated
root-run process, but even with "Enable access for assistive
devices" turned off, Snapz can happily capture Cmd-Shift-3 and
block the system and other applications from responding to it. Is
there any known way to do this? If I Shark Snapz I see it's
responding to some CGS method, so I'm reasonably confident it's
using entirely private methods, but I'm still curious.
The function you are asking may be the global hot key.
http://developer.apple.com/documentation/Carbon/Reference/
Carbon_Event_Manager_Ref/Reference/reference.html
RegisterEventHotKey
Registers a global hot key.
OSStatus RegisterEventHotKey (
UInt32 inHotKeyCode,
UInt32 inHotKeyModifiers,
EventHotKeyID inHotKeyID,
EventTargetRef inTarget,
OptionBits inOptions,
EventHotKeyRef * outRef
);
Satoshi
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
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