コード例 #1
0
        internal override void Execute(StreamWriter fs)
        {
            CommandList.MouseClick(new Point(295, 215));
            CommandList.BeginMouseDrag(new Point(566, 350));
            CommandList.Sleep(2000);
            CommandList.EndDrag();

            CommandList.MouseClick(new Point(627, 502));
            CommandList.Sleep(2000);
        }
コード例 #2
0
        public void SwipeAccrossTheFields(Point tool, Point firstField)
        {
            CommandList.BeginMouseDrag(tool);
            CommandList.Sleep(500);
            CommandList.ContinueDrag(firstField);
            CommandList.Sleep(500);
            Point leftTop    = new Point(swipeX1, swipeY1);
            Point leftBottom = new Point(swipeX1, swipeY2);

            while (leftTop.X < swipeX2)
            {
                CommandList.ContinueDrag(leftTop, leftBottom);
                leftTop.X    += swipeXIncrements;
                leftBottom.X += swipeXIncrements;
            }
            CommandList.EndDrag();
        }