Janilabo

t

Jul 6th, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.55 KB | None | 0 0
  1. const
  2.   c = 0;
  3.  
  4. procedure Action(x: Integer);
  5. var
  6.   ptToClick: TPoint;
  7. begin
  8.   ClearDebug;
  9.   case x of
  10.     1: begin
  11.          WriteLn('Action 1!');
  12.          ptToClick := Point(8, 30);
  13.        end;
  14.     2: begin
  15.          WriteLn('Action 2!');
  16.          ptToClick := Point(7, 42);
  17.        end;
  18.     3: ptToClick := Point(7, 58);
  19.   else
  20.     TerminateScript;
  21.   end;
  22.   MoveMouse(ptToClick.X, ptToClick.Y);
  23.   ClickMouse(ptToClick.X, ptToClick.Y, mouse_Left);
  24. end;
  25.  
  26. begin
  27.   repeat
  28.      Action(c);
  29.      Wait(100);
  30.   until IsKeyDown(VK_F12);
  31. end.
Advertisement
Add Comment
Please, Sign In to add comment