SRL Archive - General Botting Help

Need Help


Deific

2014-07-16 07:46:14

I am trying to hold the backspace button for a certain time and it just will not do it. I mean it will backspace one char but, then stop.

Using :

KeyDown(8);
Wait(2500);
KeyUp(8);

What am I doing wrong and any suggestions / help. Please and thank you.

The Mayor

2014-07-16 07:54:17

From: Deific
I am trying to hold the backspace button for a certain time and it just will not do it. I mean it will backspace one char but, then stop.

Using :

KeyDown(8);
Wait(2500);
KeyUp(8);

What am I doing wrong and any suggestions / help. Please and thank you.


Why would you want to do that?


repeat
typeByte(VK_SPACE);
until false;

Deific

2014-07-16 08:22:23

From: The Mayor
Why would you want to do that?


repeat
typeByte(VK_SPACE);
until false;

How do I make that 'false' into something like wait(50);

I just need it to backspace for a couple ms

KeepBotting

2014-07-16 08:31:41

OP, your current code will:

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:

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:

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;

Deific

2014-07-16 10:24:40

I appreciate all the help fellas. I needed this, I am making a flawless relogger for a rsps. Thanks :)