SRL Archive - RS Scripts

Help with a basic login script


m0u53m4t

2006-06-24 06:43:34

This is my script:
program New;

Var // Let me use some variables please
x,y: Integer; // I would like to use variables x and y as integers please
username,password: String;

procedure Login;
begin
username := 'myuser'
password := 'mypass'
ClickMouse(469,294,True)
wait(227)
sendkeys(username)
MoveMouseSmooth(487,260)
clickmouse(487,260,true)
wait(42)
sendkeys(password)
wait(5000)
MoveMouseSmooth(509,318)
ClickMouse(509,318)
end;

begin
Login
end.

But whenever I run it I just get this error:
Failed when compiling
Line 21: [Error] (21:1): Invalid number of parameters in script


Whats wrong??

The Un-Named

2006-06-24 06:59:49

ClickMouse(509,318)

Should be

ClickMouse(509,318, true)

m0u53m4t

2006-06-24 07:46:39

Thanks. How do I make movemousesmooth move the mouse slower?

The Un-Named

2006-06-24 08:33:57

You can't.

You can, however, use MouseSpeed := 5; (lower the faster) from the SRL include.

m0u53m4t

2006-06-25 05:22:30

I ended up using this command: MoveMouseSmoothEx(711,480,1,6,15,20,10);