Int r = 100; int x0 = gameRect. left + pt. x; int y0 = gameRect. top + pt. y; int x, y; double n = 0; MoveTo (x0, y0); while (n <100) {x = x0 + r * cos (n ); y = y0-r * sin (n); MoveTo (x, y); Sleep (50); if (GetCursorShape () = _ T ("6ea90254 ")) {LeftClick (); break;} r --; n ++ ;}
BOOL RectangleCircle (int x, int y, int CircleCount, int PtDistance) {int/* X coordinate * // * Y coordinate * // * Two-Point distance */I = 1, j, k; for (int m = 0; m <CircleCount; m ++) {j = 0; k = PtDistance; for (int p = 0; p <2; p ++) {for (int lineCount = 0; lineCount <I; lineCount ++) {x + = j; y + = k; SetCursorPos (x, y ); sleep (10);} j = PtDistance; k = 0;} PtDistance * =-1; I ++;} return TRUE ;}
BOOL CircleMove (int OriX, int OriY, int R, int rAdd) {double CurR = 0; int x, y; for (int cirCount = 0; cirCount <30; cirCount ++) {while (CurR <3.1415926*2) {x = OriX + R * cos (CurR); y = OriY-R * sin (CurR); SetCursorPos (x, y); Sleep (10); CurR + = 0.3;} CurR = 0; R + = rAdd;} return TRUE ;}