Log in

View Full Version : Need Help On My Frirst Script



Helper
12-23-2011, 02:30 PM
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
12-23-2011, 02:34 PM
You forgot the ";" after the ClickMouse() procedure.

Helper
12-23-2011, 02:36 PM
You forgot the ";" after the ClickMouse() procedure.

Ohhh, Thank you very much

logical
12-23-2011, 02:36 PM
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
12-23-2011, 02:52 PM
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
12-23-2011, 03:03 PM
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
12-23-2011, 03:10 PM
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