Smitty
2013-12-16 19:43:07
ok so i just started doing this again after being gone for quite a while so im probably just making a beginners mistake. But my problem is i need to press the Left Arrow key and keep it held then press the D button. my script runs but it doesn't execute it right. so do i have the correctly written or what can i change?
procedure RockHitLeft;
begin
KeyDown (37); // this is Left Arrow key being pressed
wait (22);
KeyDown (44); // this is D key being pressed
wait (RandomRange (212,218));
KeyUp (37);
wait (RandomRange (23,44));
KeyUp (44);
end;