One Mouse One Keyboard Control 2 PC
Hello, I try to write this program. This program will send mouse x y to other PC .I use mouse_event API and SetCursorPos to move cursor but I have a problem
mouse_event is very slowly
SetCursorPos is not smooth
Please help me to fix that problem.
Thank you
Re: One Mouse One Keyboard Control 2 PC
Don't use events. Make a timer to check the mouse position every 100ms or so and update the other computer. It's going to be faster than log-jamming with millions of unneeded mouse_events.
It's not going to be the smoothest thing. No remote-control program is. You have two options: You can make it happen in real-time and be slightly choppy, or buffer it, which makes a delay, but it'll be much smoother.
Re: One Mouse One Keyboard Control 2 PC
Re: One Mouse One Keyboard Control 2 PC
Just a note: If the two computers are in the same room, you could use a wireless keyboard/mouse and sync it with a receiver on both PCs. The mouse's position might not be identical right away, but moving it to the corner would take care of that.