Click here to Skip to main content
15,888,239 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hooking messages of external application Pin
saurabh sahay10-Jun-09 2:41
saurabh sahay10-Jun-09 2:41 
GeneralRe: Hooking messages of external application Pin
EliottA10-Jun-09 2:45
EliottA10-Jun-09 2:45 
GeneralRe: Hooking messages of external application Pin
Rajesh R Subramanian10-Jun-09 3:16
professionalRajesh R Subramanian10-Jun-09 3:16 
GeneralRe: Hooking messages of external application Pin
saurabh sahay10-Jun-09 4:01
saurabh sahay10-Jun-09 4:01 
GeneralRe: Hooking messages of external application Pin
Rajesh R Subramanian10-Jun-09 3:06
professionalRajesh R Subramanian10-Jun-09 3:06 
GeneralRe: Hooking messages of external application Pin
saurabh sahay10-Jun-09 4:02
saurabh sahay10-Jun-09 4:02 
AnswerRe: Hooking messages of external application Pin
saurabh sahay10-Jun-09 3:13
saurabh sahay10-Jun-09 3:13 
GeneralRe: Hooking messages of external application Pin
Dave Kreskowiak10-Jun-09 5:19
mveDave Kreskowiak10-Jun-09 5:19 
You may want to go back and re-read the OP's requirements. He wants to catch the messages going to a particular application. Your solution is completely different, capturing only the mouse messages comming out of the mouse driver system-wide. Those mouse messages don not tell you what has been clicked, only that the mouse has moved and mouse buttons have been pressed.

Since the .NET CLR doesn't support the exports required to do true "global" hooking, targeting other applications, there is no pure C# solution to his problem. He has to use C++ get something like this to work.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Hooking messages of external application Pin
saurabh sahay10-Jun-09 5:47
saurabh sahay10-Jun-09 5:47 
GeneralRe: Hooking messages of external application Pin
Rajesh R Subramanian10-Jun-09 6:17
professionalRajesh R Subramanian10-Jun-09 6:17 
GeneralRe: Hooking messages of external application Pin
saurabh sahay10-Jun-09 6:30
saurabh sahay10-Jun-09 6:30 
GeneralRe: Hooking messages of external application Pin
Rajesh R Subramanian10-Jun-09 7:09
professionalRajesh R Subramanian10-Jun-09 7:09 
GeneralRe: Hooking messages of external application Pin
saurabh sahay10-Jun-09 7:20
saurabh sahay10-Jun-09 7:20 
AnswerRe: Hooking messages of external application Pin
saurabh sahay10-Jun-09 3:31
saurabh sahay10-Jun-09 3:31 
GeneralRe: Hooking messages of external application Pin
tasumisra10-Jun-09 3:40
tasumisra10-Jun-09 3:40 
GeneralRe: Hooking messages of external application Pin
saurabh sahay10-Jun-09 4:03
saurabh sahay10-Jun-09 4:03 
GeneralRe: Hooking messages of external application Pin
Rajesh R Subramanian10-Jun-09 3:59
professionalRajesh R Subramanian10-Jun-09 3:59 
Questionopen Pdf in WebBrowser Control [modified] Pin
Abdul Rahman Hamidy10-Jun-09 1:08
Abdul Rahman Hamidy10-Jun-09 1:08 
AnswerRe: open Pdf in WebBrowser Control Pin
0x3c010-Jun-09 2:11
0x3c010-Jun-09 2:11 
GeneralRe: open Pdf in WebBrowser Control [modified] Pin
Abdul Rahman Hamidy10-Jun-09 19:44
Abdul Rahman Hamidy10-Jun-09 19:44 
AnswerRe: open Pdf in WebBrowser Control Pin
saurabh sahay10-Jun-09 2:27
saurabh sahay10-Jun-09 2:27 
GeneralRe: open Pdf in WebBrowser Control Pin
Abdul Rahman Hamidy10-Jun-09 19:46
Abdul Rahman Hamidy10-Jun-09 19:46 
GeneralFind & Search in text File Pin
Isaac Gordon10-Jun-09 0:26
Isaac Gordon10-Jun-09 0:26 
GeneralRe: Find & Search in text File Pin
0x3c010-Jun-09 0:34
0x3c010-Jun-09 0:34 
QuestionHow to convert any format vedio format to FLV format using FileUpload Control Pin
asbis9-Jun-09 23:38
asbis9-Jun-09 23:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.