dluedi
asked on
mouse hook....
Hi!
Well I know this topic has been discussed quite a few times. (Just search for mouse hook)here in the www...you find tonns of it. But the most of it is: too complicated won't work on delphi 5 or wont work on win XP.....Let's make it easy...
I just need to know where the user clicked (system wide not only in my app) and what sort of click that was (Left mouse click; right mouse click; doubleclick).
It would be cool if you could give me some simple code because I don't need any keyboard hook. (Of course if you want more points for a detailed source example I will provide it.)
Well I know this topic has been discussed quite a few times. (Just search for mouse hook)here in the www...you find tonns of it. But the most of it is: too complicated won't work on delphi 5 or wont work on win XP.....Let's make it easy...
I just need to know where the user clicked (system wide not only in my app) and what sort of click that was (Left mouse click; right mouse click; doubleclick).
It would be cool if you could give me some simple code because I don't need any keyboard hook. (Of course if you want more points for a detailed source example I will provide it.)
do you want to react when your application is
loosing focus or is it necessary that your program
works without being in the foreground?
loosing focus or is it necessary that your program
works without being in the foreground?
ASKER
Ok Munim, I will double the points. It would be great if you could provide me with a working example! Because you have to use anyway a keyboard hook let's make it like this. My program works in the background and as soon you hold the Ctrl button and click somewhere, it is shown what for a clicktype it is and displayes that e.x. in a memofield..... that would be really cool!
THX!
THX!
Hello Mr. dluedi, I created the the application to your requirement. It logs mouse messages when control key is pressed... (system wide)... You can get the code if you only agree to increase the points to 300... because, this application customized and written for you...
ASKER
I soon haven't got any points left... :(
but if it really works it would be great!
but if it really works it would be great!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That's really awesome... thanks to Munim. You really deserve your points.
THX!!!!!!!!!!!
THX!!!!!!!!!!!
You was supposed increase the points... where are those... :|
ASKER
The points are increased don't you see that???
Read up there you got 300 points with grade A!!!
From: dluedi
Date: 02/17/2003 02:43PM PST
Status: Previously Asked Question
Points: 300
Read up there you got 300 points with grade A!!!
From: dluedi
Date: 02/17/2003 02:43PM PST
Status: Previously Asked Question
Points: 300
fantastic code!
munim i posted a question for you:
https://www.experts-exchange.com/Programming/Programming_Languages/Delphi/qYourQuestion.jsp
gandalf
munim i posted a question for you:
https://www.experts-exchange.com/Programming/Programming_Languages/Delphi/qYourQuestion.jsp
gandalf
ASKER
I think gandalf the white means this link
https://www.experts-exchange.com/questions/20528363/question-for-Munim.html
https://www.experts-exchange.com/questions/20528363/question-for-Munim.html
thanks
not enough sleep and too much coffee does its work :-)
not enough sleep and too much coffee does its work :-)
This is the unique answer...