• 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
Global hotkeys without modifers (like Youpi key)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Global hotkeys without modifers (like Youpi key)?


  • Subject: Global hotkeys without modifers (like Youpi key)?
  • From: Greg Hurrell <email@hidden>
  • Date: Tue, 14 Jan 2003 15:05:51 +1030

I have a background app and I want it to catch function key-presses even when it is not in the front.

Has anybody worked out how to be notified of global hot-key events WITHOUT modifier keys?

Evidently, the guy who wrote Youpi Keys has:

http://perso.club-internet.fr/phupe/english/YKIndex.html

Specifically I would like to be able to trap for keys like F3, F4, F5 etc, but the Carbon call I am currently using to do that insists that I supply a modifier key such as shift, command, control or option as well.

The call in question is RegisterEventHotKey(). The relevant docs (http://developer.apple.com/techpubs/macosx/Carbon/oss/ CarbonEventManager/Carbon_Event_Manager_Ref/Functions/ Miscellaneous2.html#//apple_ref/c/func/RegisterEventHotKey) say:

There must be a modifier specified, or this function will return paramErr .

Any clues on alternative ways of doing this?

Cheers
Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Aqua Human Interface and Safari
  • Next by Date: Re: WebCore and PDF
  • Previous by thread: Re: Unicode canonical decomposed form and text encoding
  • Next by thread: Why does only JavaScriptCore have an install script?
  • Index(es):
    • Date
    • Thread