Global hotkeys without modifers (like Youpi key)?
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.