CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2009
    Posts
    1

    Detecting double click globally

    Hello,

    I am not entirely sure this is the right board to post this kind of a question but I'll give it a try. I want to know if there is a way (and where should I start looking) to have my app do something when the mouse is double-clicked. I am not talking about double clicking withing my application or when the application window is active, I mean whenever wherever as long as my app is running in memory. However the ability to detect those clicks only within Windows Explorer would also suffice.

    P.S. I post this in C++ forum but if anyone knows how to do this with Visual Basic that also be fine.

    NOTE: I know C++ quite well, so I will have no problem understanding advanced terms.

  2. #2
    Join Date
    Oct 2008
    Location
    Cologne, Germany
    Posts
    756

    Re: Detecting double click globally

    i think this is the place to start: SetWindowsHookEx
    http://msdn.microsoft.com/en-us/libr...90(VS.85).aspx
    win7 x86, VS 2008 & 2010, C++/CLI, C#, .NET 3.5 & 4.0, VB.NET, VBA... WPF is comming

    remeber to give feedback you think my response deserves recognition? perhaps you may want to click the Rate this post link/button and add to my reputation

    private lessons are not an option so please don't ask for help in private, I won't replay

    if you use Opera and you'd like to have the tab-button functionality for the texteditor take a look at my Opera Tab-UserScirpt; and if you know how to stop firefox from jumping to the next control when you hit tab let me know

Tags for this Thread

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