AcTools.Windows.Input.MouseSimulator.MoveMouseTo C# (CSharp) Method

MoveMouseTo() public method

Simulates mouse movement to the specified location on the primary display device.
public MoveMouseTo ( double absoluteX, double absoluteY ) : IMouseSimulator
absoluteX double The destination’s absolute X-coordinate on the primary display device where 0 is the extreme left hand side of the display device and 65535 is the extreme right hand side of the display device.
absoluteY double The destination’s absolute Y-coordinate on the primary display device where 0 is the top of the display device and 65535 is the bottom of the display device.
return IMouseSimulator
        public IMouseSimulator MoveMouseTo(double absoluteX, double absoluteY) {
            var inputList = new InputBuilder().AddAbsoluteMouseMovement((int)Math.Truncate(absoluteX), (int)Math.Truncate(absoluteY)).ToArray();
            SendSimulatedInput(inputList);
            return this;
        }