Question Hook mouse for all apps/desktop?

Calab

New member
Joined
Apr 7, 2010
Messages
3
Programming Experience
5-10
Using VB 2010, is it possible to capture all mouse clicks and determine what was clicked?

We're trying to develop a small utility that will pop up context based menus to fill in application forms and common strings for terminal sessions.

Basically, whenever I middle click I want my app to determine if the window was an occurance of PuTTY. If so, check the titlebar for certain strings and send keystrokes to that window based on the titlebar text.

If VB 2010 can't do this, what should I be looking for? Will VB6 apps do the job? Will they work on a Windows 7 PC?
 

I tried using the code in the second link, but it has some characters stripped out (apostrophe/comment and ampersand). Even after cleaning it up the public function doesn't recognize the Form object type.

Public Sub HookMouse(ByRef ff As Form)​

The first like was used to create the code in the second link and is keyboard based.
 
Back
Top