Log in

View Full Version : AutoTyper



sm321
03-17-2012, 08:20 AM
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
03-17-2012, 08:32 AM
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
03-17-2012, 08:43 AM
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 :)