davx
2012-01-01 13:57:53
program DTMTTEST;
{$i srl/srl.scar}
Var
CoalBag, X, Y: Integer;
begin
SetupSrl;
CoalBag := DTMFromString('mlwAAAHicY2dgYOAGYnYgFgViHgYIYAViISDmhfL5gVgCiAWhajmAeG55BJBkwopFGDDBfyhmxIOhAAAp8QQ3');
If FindDTM(CoalBag, X, Y, MSX1, MSY1, MSX2, MSY2) then
begin
WriteLn('We Found it');
MMouse(x, y, 7, 7);
If IsUpText('oal') then
Mouse(x, y, 0, 0, False);
End;
FreeDTM(CoalBag);
end. Basically it 'Should' find the coalbag and click on it however it fails to.
It runs goes to the item and well doesn't click
Any Help?