• 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: Snarfing Keyboard Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Snarfing Keyboard Events (From: Seth Willits <email@hidden>)

  • Prev by Date: Snarfing Keyboard Events
  • Next by Date: Re: Cocoa to Tool application convertion
  • Previous by thread: Snarfing Keyboard Events
  • Next by thread: nsarraycontroller and nsuserdefaultscontroller
  • Index(es):
    • Date
    • Thread