i have application in set lsuielement key 1, runs in background , not show icon in dock. make application responsive keystrokes or mouse events. main window appear when app launched. main window visible, keystrokes handled correctly, if close there's no way show again (and keystrokes ignored). want application responsive time push particular key combination (as i.e. scribblet know it). can tell me can find information how this?
the status bar application active, , your application can receive events, when window or menu open.
your application can implement "hot key" setting event tap:
cgeventtapcreate(kcgsessioneventtap, kcgtailappendeventtap, kcgeventtapoptiondefault, kcgeventkeydown myeventtapcallback, null);
this allow application inspect keydown
events before routed other applications. see callbacks how callback function needs , behave.
there's easier-to-use cocoa class written dave delong available on github: ddhotkey.
Comments
Post a Comment