CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 1999
    Posts
    3

    is it possible to receive the event even if focus is not on my app?

    Hi,
    I'm trying to close my application by pressing some key while my app is not on focus. Is there any way how I can achieve this?
    Any help will be appreciated.
    Thanks,
    Don


  2. #2
    Join Date
    Jul 1999
    Location
    India
    Posts
    15

    Re: is it possible to receive the event even if focus is not on my app?

    I doubt, but it is possible if your application is memory resident like any anti-virus application. Do not know how to code, reply to me if you get one.

    Rajesh Channi
    http://channi.cjb.net
    [email protected]_

  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: is it possible to receive the event even if focus is not on my app?

    you could create a desktop shortcut for another small app and assign a key combination to that app. This small app could use FindWindow to find your app and post a WM_CLOSE message to your window...



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured