SRL Archive - First Scripts

AutoTyper My first script :P


scanjet92

2007-12-23 16:00:09

This is my first script so i decided to make a simple auto typer

program AutoTyper;
{.include srl/srl.scar}

const

WaitTime=2;//Time to wait inbetween each message(in seconds)
MovementEffect = 'wave2:';//Movement effect e.g. wave2: , scroll: must put : in
ColourEffect = 'flash2:';//Colour effect e.g. flash2: , glow2: , or just the colour
Message1='hello';//The first message/advertisement
Message2='goodbye';//Message to be said after the first message
SayAgain=4;//How many times to repeat both messages
var


i:integer;


procedure typer;

begin

wait(WaitTime*1000)
SendKeys(MovementEffect);
SendKeys(ColourEffect);
TypeSend(message1);
wait(WaitTime*1000)
SendKeys(MovementEffect);
SendKeys(ColourEffect);
TypeSend(message2);


end;
begin
setupSRL;
repeat
typer;
i:=i+1
until(i>=SayAgain)
end.


[ATTACH]9187[/ATTACH]

i would like to know how to put it so it automatically goes onto the rs window and starts typing the message because at the moment it just starts typing as soon as you press run script

Exaligo I

2007-12-24 05:19:53

Sorry, what do you mean?

It would only start typing when you press run script because otherwise, it wouldn't be running any of your code. By pressing run script, you're starting the script, so it would type. If you mean is there a way to start the script without pressing run (or Ctrl + Alt + R) then I don't think there is.

I made a similar autotyper (but it had a log-in procedure too). I like the way you used the setup in seconds between messages and also how you used TypeSend. Much less detectable than SendKeys. But I know you must have had a problem with TypeSend for the effects?

I figured out a way around this:

TypeSend(ColourEffect+MovementEffect+message1);

Oh, and by the way, colour effects go before movement (I think). :redface:

Hope this helps. You might want to check out my script too:

Exaligo I's Auto Log-In/Talker
URL: http://www.villavu.com/forum/showthread.php?t=23140

Boom Headshot

2007-12-24 05:48:07

Nice script. ;)