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

MoveMouseToPositionOnVirtualDesktop() public method

Simulates mouse movement to the specified location on the Virtual Desktop which includes all active displays.
public MoveMouseToPositionOnVirtualDesktop ( double absoluteX, double absoluteY ) : IMouseSimulator
absoluteX double The destination’s absolute X-coordinate on the virtual desktop where 0 is the left hand side of the virtual desktop and 65535 is the extreme right hand side of the virtual desktop.
absoluteY double The destination’s absolute Y-coordinate on the virtual desktop where 0 is the top of the virtual desktop and 65535 is the bottom of the virtual desktop.
return IMouseSimulator
        public IMouseSimulator MoveMouseToPositionOnVirtualDesktop(double absoluteX, double absoluteY) {
            var inputList = new InputBuilder().AddAbsoluteMouseMovementOnVirtualDesktop((int)Math.Truncate(absoluteX), (int)Math.Truncate(absoluteY)).ToArray();
            SendSimulatedInput(inputList);
            return this;
        }