I want to make replacement for app switcher (aka 'CMD + tab')
I know that this is possible because Light Switch X does this.
What I have achieved so far:
Leaving the Dock and CPSRegisterForKey ()
(which is a private API function) I can go to the default CMD + tab I can stop working.
The second step two registers the hot key for my app. The standard way of doing this, RegisterEventHotKey ()
, does not work is a small suggestion of Googling and GDBing I use the dock and the light switch x to use the CGSSetHotKeyEnabled ()
and CGSSetHotKey ()
(both of which have private API functions) I have the problem that I do not know this What logic do these tasks take?
How do I set the argument for a private API function?
Update:
me CGSSetHotKey ()
:
OSErr setupResult = CGSSetHotKey ( _CGSDefaultConnection (), unknownArg, unknown erg, unknownArg, kCGEventFlagMaskCommand, ???, ???, ...);
Have you tried to experiment? This is usually very useful.
Comments
Post a Comment