Esempio n. 1
0
        private void MoveDragWrapper(uint x1, uint y1, uint x2, uint y2)
        {
            uint actualX1 = (uint)(x1 + this.GameRect.Left);
            uint actualY1 = (uint)(y1 + this.GameRect.Top);
            uint actualX2 = (uint)(x2 + this.GameRect.Left);
            uint actualY2 = (uint)(y2 + this.GameRect.Top);

            SuperInputSim.MoveMouseTo(actualX1, actualY1);
            Thread.Sleep(500);
            SuperInputSim.SendClick(actualX1, actualY1, ClickFlags.LeftClick);
            Thread.Sleep(500);
            SuperInputSim.SendDrag(actualX1, actualY1, actualX2, actualY2, ClickFlags.LeftClick);
        }
Esempio n. 2
0
 private void MoveClickWrapper(uint x, uint y, ClickFlags flag = ClickFlags.LeftClick)
 {
     SuperInputSim.MoveMouseTo((uint)(x + this.GameRect.Left), (uint)(y + this.GameRect.Top));
     SuperInputSim.SendClick((uint)(x + this.GameRect.Left), (uint)(y + this.GameRect.Top), flag);
 }