SRL Archive - Help

Need Help On My Frirst Script


Helper

2011-12-23 09:30:16

i just started to learn 10 minutes ago, i make this script to open google chrome and close it but i got this error:[Error] (9:1): Type mismatch at line 8
Compiling failed.


program new;

procedure OpenChrome;
begin
MoveMouse (409, 885);
Wait(500);
ClickMouse(409, 883, True); <<< now i get that Error
Wait(3000);
end;

procedure CloseChrome;
begin
MoveMouse(1579, 10);
Wait(500);
ClickMouse(1579, 10, True);
wait(1000);
end;

begin
OpenChrome;
CloseChrome;
end.



FIXED

Kyle Undefined

2011-12-23 09:34:01

You forgot the ";" after the ClickMouse() procedure.

Helper

2011-12-23 09:36:02

From: Kyle Undefined
You forgot the ";" after the ClickMouse() procedure.


Ohhh, Thank you very much

logical

2011-12-23 09:36:59

add a semi colon to the line before…
I'm sure there is a thread on this already that lists all the very common problems…please search beforehand…

E: …i was kinda slow :P

E2: http://villavu.com/forum/showthread.php?t=6413

Helper

2011-12-23 09:52:48

From: logical
add a semi colon to the line before…
I'm sure there is a thread on this already that lists all the very common problems…please search beforehand…

E: …i was kinda slow :P

E2: http://villavu.com/forum/showthread.php?t=6413


I get the same ERROR :/

logical

2011-12-23 10:03:21

Click type is not a boolean…so u cant type true or false…im not sure what the valid arguments for this are though
Try clickleft of a number e.g. 0, 1, 2

E: Clickleft doesn't work unless you have included srl.scar … so you will have to use integers. I think 0 is right click, 1 is left…idk what 3 does…test it out :)

Helper

2011-12-23 10:10:15

From: logical
Click type is not a boolean…so u cant type true or false…im not sure what the valid arguments for this are though…try clickleft of a number e.g. 0, 1, 2


Thank you now it works . :D