SRL Archive - OSR Help

Whenever I tell Simba to FindDTM and Mouse(x) it goes to the top left


rsbots2013

2013-05-24 02:25:27

How do I tell Simba to findDTM and go to the DTM?

found a solution

Flight

2013-05-24 02:32:57

That's because your DTM isn't found, so your X/Y both remain the default 0 and 0. Try this instead:

if FindDTMRotatedAlternating(LogBalance1, x, y, MMX1, MMY1, MMX2, MMY2, -Pi/2, Pi/2, Pi/30, aFound) then
begin
writeln('Found Log Balance');
Mouse( x, y, 1, 1, True);
end else
Writeln('DTM not found...');

rsbots2013

2013-05-24 02:44:49

Thank you very much! :)