Shatterhand
2012-03-20 14:49:12
I have a simple RotateCam function, but recently its not working well. It rotates the cam only one direction (right). VK_LEFT works as VK_RIGHT.
procedure RotateCam;
begin
ActivateClient;
case Random(1) of
0:
begin
Wait(100 + random(50));
KeyDown(VK_RIGHT);
Wait(500 + random(1000));
KeyUp(VK_RIGHT);
Wait(500 + random(1000));
end;
1:
begin
Wait(100 + random(50));
KeyDown(VK_LEFT);
Wait(500 + random(1000));
KeyUp(VK_LEFT);
Wait(500 + random(1000));
end;
end;
end;