Mahmood,

The reason I didn't reply earlier as I didn't feel you were adequately clear on what you wanted. Here are some of the different scenarios I could envision:

  • Are you talking about clicking on another form within the same application?
  • If not the same application, do we need to detect clicks on the desktop?
  • Is it some specific other application about which we're worried about clicks?
  • What are we trying to do once we detect a click that has occurred somewhere else?
  • Are we truly talking about a "click" or are we talking about a mouse-down-and-drag?
  • If we're talking about mouse-down, then the whole issue of "who has captured the mouse" comes into play.
  • Why wasn't the actual task of what you're trying to do outlined for us?


There are some system wide mouse hooks floating around. But they're certainly not highly advised. Again, I'd be willing to brainstorm if you're willing to outline what you're trying to do in more detail.

Best Regards,
Elroy