Click here to Skip to main content
15,902,938 members
Home / Discussions / C#
   

C#

 
GeneralRe: SQL Database is not saved after data inserted!! Pin
Zohair8310-Jun-09 6:05
Zohair8310-Jun-09 6:05 
GeneralRe: SQL Database is not saved after data inserted!! Pin
DaveyM6910-Jun-09 6:11
professionalDaveyM6910-Jun-09 6:11 
QuestionCom Port [modified] Pin
sahu.shikha10-Jun-09 2:09
sahu.shikha10-Jun-09 2:09 
AnswerRe: Com Port Pin
Manas Bhardwaj10-Jun-09 2:23
professionalManas Bhardwaj10-Jun-09 2:23 
AnswerRe: Com Port Pin
Luc Pattyn10-Jun-09 2:33
sitebuilderLuc Pattyn10-Jun-09 2:33 
Questionproblem with logic Pin
tasumisra10-Jun-09 1:28
tasumisra10-Jun-09 1:28 
AnswerRe: problem with logic Pin
Manas Bhardwaj10-Jun-09 1:43
professionalManas Bhardwaj10-Jun-09 1:43 
GeneralRe: problem with logic Pin
tasumisra10-Jun-09 1:56
tasumisra10-Jun-09 1:56 
GeneralRe: problem with logic Pin
tasumisra10-Jun-09 2:38
tasumisra10-Jun-09 2:38 
AnswerRe: problem with logic Pin
Ennis Ray Lynch, Jr.10-Jun-09 4:15
Ennis Ray Lynch, Jr.10-Jun-09 4:15 
GeneralRe: problem with logic Pin
tasumisra10-Jun-09 5:42
tasumisra10-Jun-09 5:42 
QuestionHooking messages of external application Pin
Muneeb Abdul Shakoor10-Jun-09 1:21
Muneeb Abdul Shakoor10-Jun-09 1:21 
AnswerRe: Hooking messages of external application Pin
Pete O'Hanlon10-Jun-09 1:28
mvePete O'Hanlon10-Jun-09 1:28 
RantRe: Hooking messages of external application PinPopular
Rajesh R Subramanian10-Jun-09 1:43
professionalRajesh R Subramanian10-Jun-09 1:43 
GeneralRe: Hooking messages of external application Pin
Manas Bhardwaj10-Jun-09 1:44
professionalManas Bhardwaj10-Jun-09 1:44 
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 

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.