Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4558374
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:38:28+00:00 2026-05-21T17:38:28+00:00

I have an application in which I set the LSUIElement key to 1, so

  • 0

I have an application in which I set the LSUIElement key to 1, so that it runs in background and does not show the icon in Dock.
My will is to make the application responsive to keystrokes or mouse events. Actually the main window appear only when the app is launched. With the main window visible, keystrokes are handled correctly, but if I close it there’s no way to show it again (and so keystrokes are ignored). I want my application to be responsive any time I push a particular key combination (as i.e. Scribblet does for those who know it).
Can anyone tell me where I can find information about how to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T17:38:28+00:00Added an answer on May 21, 2026 at 5:38 pm

    The status bar application is only active, and thus your application can only receive events, when the window or the menu is already open.

    Your application can implement a “hot key” by setting up an Event Tap:

    CGEventTapCreate(kCGSessionEventTap,
                     kCGTailAppendEventTap,
                     kCGEventTapOptionDefault,
                     kCGEventKeyDown
                     myEventTapCallback,
                     NULL);
    

    This will allow your application to inspect keyDown events before they are routed to other applications. See Callbacks for how your callback function needs to look and behave.

    There’s also a probably easier-to-use Cocoa class written by Dave DeLong available on GitHub: DDHotKey.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed the application in which i want to set the background color
I have an application that uses a ResourceDictionary to set the styles, which it
I have a console application which does a set of operations and gives out
I have developed WPF application which contains the menuitem. I set background color to
I have an MVC application which has a set of fields for contact details
I have an application which is using a set of three combo boxes. I
I have an IOS application which uses environment variables and am able to set
I have to implement an application in which I have set small edittext for
We have an ASP.net 2.0 web application which is using themes set on the
In my c# application i have this small form which is used to set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.