inputs[0].type = INPUT.INPUT_MOUSE;
return KeyboardInput.SendInput(inputs) == 1;
}
public static boolean mover(long x, long y){
MOUSEINPUT[] inputs = new MOUSEINPUT[1];
inputs[0] = new MOUSEINPUT();
inputs[0].type = INPUT.INPUT_MOUSE;
inputs[0].dx = x*65535/WinJavaSystem.getScreenWidth();
inputs[0].dy = y*65535/WinJavaSystem.getScreenHeight();
inputs[0].dwFlags = MOUSEINPUT.MOUSEEVENTF_ABSOLUTE | MOUSEINPUT.MOUSEEVENTF_MOVE;
return KeyboardInput.SendInput(inputs) == 1;