Janilabo

Untitled

Jul 8th, 2012
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.50 KB | None | 0 0
  1. procedure new_c(d: Integer; s: string);
  2. var
  3.   absX, absY, X, Y: Integer;
  4.   c: TPoint;
  5. begin
  6.   absX := 431;
  7.   absY := 136;
  8.   if (FindColor(X, Y, 6262732, 356, 63, 388, 98)) then
  9.   begin
  10.     case Lowercase(s) of
  11.       'l': c := Point((absX - d), absY);
  12.       'r': c := Point((absX + d), absY);
  13.       'f': c := Point(absX, (absY - d));
  14.       'b': c := Point(absX, (absY + d));
  15.     else
  16.       Exit;
  17.     end;
  18.     MoveMouse(c.X, c.Y);
  19.     ClickMouse(c.X, c.Y, mouse_left);
  20.     Wait(2000);
  21.   end;
  22. end;
Advertisement
Add Comment
Please, Sign In to add comment