Log in

View Full Version : Help on easy code :/



Irae
09-03-2012, 10:12 AM
if
Timerunning (300000)
MoveMouse (750, 12)
Wait (500)
Clickmouse (750, 12)
end.

This is what I'm trying to get working when i try to use timerunning it doesnt work with "movemouse" it says invalid number of parameters? yet i copied straight from the function board. just wondering what's wrong with it...

Thanks in advance.

satkan
09-03-2012, 10:15 AM
I wonder if you need to import anything from the library.

Did you start with a procedure / begin declaration?

YoHoJo
09-03-2012, 10:23 AM
Post the entire script please, and put it in Simba tags, not code tags.
Is this a script for RS? Or a private server? Or just something else?

riwu
09-03-2012, 10:26 AM
nth wrong with ur MoveMouse.
1. Timerunning has no parameters.
2. Timerunning returns in hours, mins, seconds format which is probably not what you want.
3. you need a 'then' after a 'if (boolean)'.
4. need a begin if performing multiple actions after a conditional statement.
5. semicolons.

begin
repeat
if GetTimeRunning>300000 then
begin
MoveMouse (750, 12);
Wait (500);
Clickmouse (750, 12, mouse_Left);
end;
until(false);
end.
Totally read your mind.
If you are using it for official RS, use some more advanced antiban to stay logged in.