HelpMouse + keyboard

Posts 13 of 3 · Page 1 of 1
Mouse + keyboard
Hello, I'm currently working on a project that includes binding certain mouse movement to certain keyboard keys. What I need is a background process, that detects when the mouse is moving left and right. If left > keypress A, if right >keypress D.
What I'm having trouble is with the background process and the way to bind the mouse movement to the keypresses.
I'm fairly new to c# and thats why I'm asking for help. Please do provide any ideas you have. Thanks.
Hi be7a,
according to your problem i've created a quick solution. The main idea behind it is to create a thread and manually read the mouse location from the
System.Windows.Forms reference api. It includes a type called Cursor which enables you to read the location in Point your mouse is currently
located at. Simple for now... next i implemented the thread to invoke an event every time the mouse moved. The event also gives you the ability to
check whether a horizontal or a vertical move was made. Whatever i hope the solution does fit your needs.



Any questions?
Just pm me. i'll answer as soon as possible.



https://www.virustotal.com/en/file/a...is/1393804914/
Binding Solution_mpgh.net.rar37 KB · 9 downloads Scanning…
Thanks sorpz, will try out real quick
Posts 13 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?