Janilabo

Untitled

Jul 7th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.40 KB | None | 0 0
  1. procedure MoveCamera(direction: (d_R, d_L); amount: Integer);
  2. var
  3.   i, k: Integer;
  4. begin
  5.   if (amount < 1) then
  6.     Exit;
  7.   case direction of
  8.     d_L: k := 39;
  9.     d_R: k := 37;
  10.   end;
  11.   for i := 0 to (amount - 1) do
  12.   begin
  13.     KeyDown(k);
  14.     Wait(1);
  15.     KeyUp(k);
  16.   end;
  17. end;
  18.  
  19. begin
  20.   ActivateClient;
  21.   Wait(500);
  22.   MoveCamera(d_R, 10);
  23.   Wait(1000);
  24.   MoveCamera(d_L, 10);
  25. end.
Advertisement
Add Comment
Please, Sign In to add comment