OP, your current code will:
Code:
Push the key down
Wait 2 and a half seconds
Release the key
To push it for as long as you want, try something like this:
Simba Code:
procedure backspace();
var
t:TTimeMarker;
begin
t.start();
repeat
keyDown(8);
wait(100);
keyUp(8);
until (t.getTime() > 10000); //change 10000 to whatever your time limit should be
end;
You could even do it based on key presses, say you want to backspace 10 characters, you could do this:
Simba Code:
procedure backspace();
var
i:integer;
begin
repeat
keyDown(8);
wait(100);
keyUp(8);
inc(i);
until (i >= 10); //this will allow it to press they key 10 times
end;