Hey Drexlin, I figured it out.
Add a reference to System.Drawing to your .cs and then when you solve for your x and y coords, make your next line as follows:
Cursor.Position = new Point((int)x, (int)y);
Then use it in your SendMouseInput or mouse_event function (Cursor.Position.X and Y) instead of your original x and y.
Cheers, hope that helps you out too!
Chris
[.net] How to simulate a mouse click in C#?
hi... i appreciate that if anyone can help me...
I have been trying to disable mouse click for startup button in c#...
I tried several ways but i couldnt make it...
please help me....
I have been trying to disable mouse click for startup button in c#...
I tried several ways but i couldnt make it...
please help me....
If you have a new question, you should start a new thread. Also, if you're going to start a new thread, I would suggest you also provide a reason for why you want to "disable mouse click for [start] button". If you're writing a kiosk program, there's better ways to do it than messing with mouse messages, but if you don't tell us we can't really guess.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement