SRL Archive - Help

Object clicking help


Noob King

2012-05-30 03:02:50

I have just started scripting, so I decided to make a simple script for firemaking. I don't have much so far, but already it goes haywire. All it is supposed to do is left click the noted maple logs and then stop.

program test;
{$i srl/srl.simba}
{$i sps/sps.simba}


Procedure MapleLogs;
var
x, y: integer;
begin
if FindObj(x, y, 'Maple logs', 7248040, 6)then
Mouse(x, y, 2, 2, true);
end;

begin
MapleLogs;
end.

It won't click on the maple logs, it just makes my mouse move to the left of the rs window and has a spaz attack in the black area. Can some one tell me what I did wrong?

Runaway

2012-05-30 03:07:53

You've forgotten to include SetupSRL!


begin
SetupSRL;
MapleLogs;
end.

Noob King

2012-05-30 03:08:55

From: Runaway
You've forgotten to include SetupSRL!


begin
SetupSRL;
MapleLogs;
end.


Silly me. Thankyou.