Thread: Mouse button outside of my app?

  1. #1
    BubbleMan
    Guest

    Question Mouse button outside of my app?

    I know how to detect the F1 - F12 keys. How would I detect one on the desktop?

  2. #2
    Registered User The15th's Avatar
    Join Date
    Aug 2001
    Posts
    125
    Hi BubbleMan;

    if you want to dected if the f1 - f12 keys have been pushed whilst the user is in other programs, then you have to use 'Hooks'. (there may be other ways but this is the way i would do it). You will need to use global hooks, which means making a DLL file with the HookProc in and an .EXE that calls the DLL. A search at MSDN or google will find you a heap of code examples on key loggers that do this same thing.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 12
    Last Post: 12-08-2008, 07:13 PM
  2. Code for holding down right mouse button
    By Bill83 in forum Windows Programming
    Replies: 2
    Last Post: 03-04-2006, 07:28 PM
  3. Looking at current mouse button state
    By Lifedragn in forum C# Programming
    Replies: 4
    Last Post: 12-02-2005, 06:52 AM
  4. Making a mouse hover button, API style
    By hanhao in forum C++ Programming
    Replies: 1
    Last Post: 05-27-2004, 06:17 AM
  5. HowTo disable button in MFC app
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 01-04-2002, 02:15 AM