I saw some "alike" questions. But the answers were always asking the questioner to use winform. I am in the need of 100% console aplplication which can hook into Windows message queue and give the mouse click points. The mouse click can happen any where in the window.
What I did: I made this perfectly using winforms. Actually I copied most of the code from one blog. It is working. But my current project is "Automating the tests". Here We have to launch most of the applications as a console application. Otherwise the operation will become a mess. I tried with IMessageFilter, then I came to know that it requires form.
Can anybody guide me in proper direction?
Note: I am using Windows7, .Net4.5, Visual Studio Express - 2012
EDIT:
I am not at all caring the console. My target is getting the mouse click coordinates(any where in the screen). That means first I will lauch the program from console, then I will make some clicks on the screen. The console should print out the coordinates of those mouse clicks instantly.