SRL Archive - Help

AutoTyper


sm321

2012-03-17 04:20:53

I've made a simple autotyper on Simba, but I get an error:

[Error] (7:13): Invalid number of parameters at line 6
Compiling failed.

Here's the script I have so far:

program AutoTpyer;

procedure Wait;
begin

Wait(2000);

end;

procedure Typing;
begin

SendKeys('Your Text Here', 1);
KeyDown(13);
KeyUp(13);
Wait(500);
end;

begin
Wait
repeat
Typing
until(false);
end.

YoHoJo

2012-03-17 04:32:49

You named a procedure wait.
Wait is already a procedure built into Simba so you cant name your own procedures by that name. Also since that procedure is 1 line long, just remove it entirely and put the Wait(2000) in your mainloop.

sm321

2012-03-17 04:43:08

From: YoHoJo
You named a procedure wait.
Wait is already a procedure built into Simba so you cant name your own procedures by that name. Also since that procedure is 1 line long, just remove it entirely and put the Wait(2000) in your mainloop.


Oh I get it, thanks. But I need it to wait ~2 seconds before the script starts, so you can click where you want the message sent. It works anyway :)