Janilabo

Untitled

Jul 7th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.50 KB | None | 0 0
  1. procedure StartRotate(direction: (d_R, d_L));
  2. var
  3.   k: Integer;
  4. begin
  5.   case direction of
  6.     d_L: k := VK_LEFT;
  7.     d_R: k := VK_RIGHT;
  8.   end;
  9.   if not IsKeyDown(k) then
  10.     KeyDown(k);
  11. end;
  12.  
  13. procedure StopRotate(direction: (d_R, d_L));
  14. var
  15.   k: Integer;
  16. begin
  17.   case direction of
  18.     d_L: k := VK_LEFT;
  19.     d_R: k := VK_RIGHT;
  20.   end;
  21.   if IsKeyDown(k) then
  22.     KeyUp(k);
  23. end;
  24.  
  25. begin
  26.   ActivateClient;
  27.   Wait(100);
  28.   StartRotate(d_R);
  29.   Wait(1000);
  30.   StopRotate(d_R);
  31. end.
Advertisement
Add Comment
Please, Sign In to add comment