SRL Archive - First Scripts

i need help again (not an auto typer)


corl455

2007-09-15 16:18:22

ahh!, i always get this error when i try to use Mmouse or mouse:
[Runtime Error] : divide by Zero in line 80 in script C:\Program Files\SCAR 3.11\includes\SRL/SRL/Core/Mouse.scar
How do i fix/what went wrong
program New;
{.include srl/srl.scar}
procedure clickhere;
begin
mouse(443,299,100,100,true);
end;
begin
clickhere;
end.

lolislol

2007-09-18 09:45:23

program New;
{.include srl/srl.scar}
procedure clickhere;
begin
mouse(443,299,100,100,true);
end;
begin
clickhere;
end.
Well if you want it to click there then use as:
program New;
{.include SRL/SRL.scar}
procedure clickhere;
begin
mouse(443,299,100,100,true);
end.
And to mainloop add clickhere;

OR

This Right Clicks it and searchs for an option from the bar that comes there i use the ChooseOption from my wcing script:
program New;
{.include SRL/SRL.scar}
procedure clickhere;
begin
mouse(443,299,100,100,false);
if ChooseOption('hop') then
begin
(Rest Of The Procedure)
end.
And to mainloop add clickhere;

Reply if didn't work :)

King of Knives

2007-09-18 09:52:05

That isn't gonna solve his problem.

The "Divide by Zero"-problem is ALWAYS there when you have forgotten to use SetupSRL;

So remember to use SetupSRL; in the start of every SRL script!

PS: What the hell is this doing in first-scripts section?!

-Knives

ammo2006

2007-09-18 12:58:06

King is right so…what u want to do it, like thi
program New;
{.include srl/srl.scar}
procedure clickhere;
begin
mouse(443,299,100,100,true);
end;
begin
SetupSrl;
clickhere;
end.

I belive…

King of Knives

2007-09-18 13:41:33

That was exactly what I meant.

Maybe with some more identing and uppercase to make it look neat.

-Knives

mat_de_b

2007-09-18 17:08:04

King of Knives 1 ammo 0 :D