Ejemplo n.º 1
0
        public void MyMouseClick(Dictionary <String, int> clickDic, string clickType)
        {
            int X = clickDic["X"];
            int Y = clickDic["Y"];

            LogInfo(string.Format("鼠标点击({2})坐标:{0},{1}", X, Y, clickType));
            if (clickType == "L")
            {
                MouseFlag.MouseLefClickEvent(X, Y, 0);
            }
            else if (clickType == "R")
            {
                MouseFlag.MouseRightClickEvent(X, Y, 0);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 点击某个位置
 /// </summary>
 /// <param name="x"></param>
 /// <param name="y"></param>
 public static void ClickByLocation(int x, int y)
 {
     MouseFlag.MouseLefClickEvent(x, y, 0);
 }