FROM : Greg Hurrell
DATE : Tue Jan 14 05:35:51 2003
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Tue Jan 14 05:35:51 2003
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

