andryaze
2013-02-25 16:12:41
I'm working on a my first script.
Thats a test part. I have to manually set up the trap, if i catch a bird the script checks the bird snare.
Setting up the trap etc will come once i understood this better.
It moves the mouse to the position but doesn't click and the script crashes.
Does anyone know why?
program BirdHunter;
{$I SRL\SRL.Simba}
{$I P07Include.Simba}
var x, y: integer;
procedure huntBird;
begin
FindColorTolerance(x, y, 2897763, 242, 137, 379, 196, 4);
MoveMouse (x, y);
wait(1000)
if (P07_GetUpText = 'Check Bird snare')then
ClickMouse2(mouse_left);
Wait(10000)
end;
begin
repeat
huntBird;
until(false);
end. Thats a test part. I have to manually set up the trap, if i catch a bird the script checks the bird snare.
Setting up the trap etc will come once i understood this better.
It moves the mouse to the position but doesn't click and the script crashes.
Does anyone know why?