Simulating mouse movement in the most realistic way possible without writing to memory would be doable simply using
SetCursorPos(1146,372);
int x;
int y;
mouse_event(MOUSEEVENTF_RIGHTDOWN, x, y, 0, 0); //Click Down
mouse_event(MOUSEEVENTF_RIGHTUP, x, y, 0, 0); //Click Up
and for the cursor position, having variables which would gradually change toward a goal cursor position using acceleration that matches the acceleration of the human hand moving their mouse across the screen. Also, of course, you would click down on the right mouse and keep that held for the duration of navigating until you need the mouse to click on a node or whatever. Perhaps you could even set up a short program that records how many pixels your mouse travels per 5ms or whatever from start to finish and measure the acceleration you naturally use. Then, using this velocity curve, you can effectively give your mouse movement on the bot a 100% accurate match of the movement you naturally use with your mouse by hand. Throw in some jumping and you will have the most realistic bot ever... would NEVER get reported for botting as such humanlike movement is unheard of... click to move looks darn good though, but this could be made to look even better!
Note: I actually messed with using similar mouse cursor positioning code to move my character and noticed that the character would insta turn overly fast some of the times and turn less other times depending I bet on my ping... the game cannot register a fake mouse movement that moves the mouse instantly like 100pixels to the right... this would be the equivalent of punching your mouse across the mousepad... you simply can't even move the mouse that fast... it won't register a smooth movement... At the time I overlooked that fact and got frustrated and gave up... but looking back, had I moved the mouse cursor gradually bit by bit in the code, it would have made a smooth movement... and of course, adding in code to give it a proper acceleration and deceleration like human movement would be icing on the cake![]()