Junior
2007-02-14 14:50:51
Im using that include ({.include srl\srl\misc\ItemList.scar}), and I cant get any bitmap mask to work. This is the mini script I made to see if it moves the mouse towards the object… And it does nothing. Does anyone know what im doing wrong?
program New;
{.include SRL/SRL.scar}
{.include srl\srl\misc\ItemList.scar}
procedure Find;
begin
SetupItems;
if (FindBitmapMaskTolerance(AllItems[84].Bitmap, x, y, mix1, miy1, mix2, miy2, 80, 80)) then
begin
MMouse(x, y, 0, 0);
FreeBitmap(AllItems[84].Bitmap);
end;
end;
begin
SetUpSRL;
ActivateClient;
Wait(1000);
Find;
end.