SRL Archive - OSR Help

Coordinates problem


Marc000z

2012-10-05 14:04:08

When I choose a client screen, it doesn't make the corner 0,0, thus making the coordinates all weird when I try to add a code like "movemouse".

Any idea what I could do to fix this?

J J

2012-10-05 18:11:42

I believe I had a similar problem with my Minesweeper solver I've been working on a while ago.

My mainloop
begin
SetupSRL;
ActivateClient;
ImageResetClientArea;
Setup;
Debug := True;

SafeCheck(0);

{ClickBox;
for K:=0 to high(BoxDetails) do
writeln((IntToStr(k) + ': ' + BoxDetails[k])); }
end.

Calling ActivateClient and ImageResetClientArea afterwards should solve the problem for you :)