.net - C# - How to get the mouse clicks in command line exe without using winform -


i saw "alike" questions. answers asking questioner use winform. in need of 100% console aplplication can hook windows message queue , give mouse click points. mouse click can happen in window.

what did: made using winforms. copied of code 1 blog. working. current project "automating tests". here have launch of applications console application. otherwise operation become mess. tried imessagefilter, came know requires form.

can guide me in proper direction?

note: using windows7, .net4.5, visual studio express - 2012

edit:

i not @ caring console. target getting mouse click coordinates(any in screen). means first lauch program console, make clicks on screen. console should print out coordinates of mouse clicks instantly.

this take on need do, although i'm still little hazy on whether or not understand question.

  1. create normal console application.
  2. install mouse hook, wh_mouse_ll.
  3. deal mouse messages hook please, example outputting information on console.

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -