Mouse button outside of my app?

This is a discussion on Mouse button outside of my app? within the Windows Programming forums, part of the Platform Specific Boards category; I know how to detect the F1 - F12 keys. How would I detect one on the desktop?...

  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, 06:13 PM
  2. Code for holding down right mouse button
    By Bill83 in forum Windows Programming
    Replies: 2
    Last Post: 03-04-2006, 06:28 PM
  3. Looking at current mouse button state
    By Lifedragn in forum C# Programming
    Replies: 4
    Last Post: 12-02-2005, 05: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, 01:15 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21