kkqbalm
asked on
Detect Mouse Clicks Outside app.
well what i need is fairly simple, but since im somehow new on those kind of events im asking here ^^..
anyway what i need is something simple, whenever the users press the right button on any other application my program would know that he just pressed it, for example change my form color..
so anyone?
thx in advance.
anyway what i need is something simple, whenever the users press the right button on any other application my program would know that he just pressed it, for example change my form color..
so anyone?
thx in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What about using windows WH_MOUSE hook to do this?
http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/hookreference/hookfunctions/setwindowshookex.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/hookreference/hookfunctions/mouseproc.asp
Let me know if you need an example.
http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/hookreference/hookfunctions/setwindowshookex.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/hookreference/hookfunctions/mouseproc.asp
Let me know if you need an example.
there are some good examples as well on the net and on EE:
https://www.experts-exchange.com/questions/20264989/Hook-the-mouse.html
https://www.experts-exchange.com/questions/20303677/Global-Mouse-Double-Button-Click-Detection.html
http://www.greatis.com/delphicb/tips/lib/manipulators-hookmouse.html
http://delphi.about.com/od/windowsshellapi/a/mousehook.htm
let me know if you need more help