
Originally Posted by
p1ng
It's definitely the navbar issue. I was trying to make a few functions with MouseBox in them yesterday and for the SmartGraphics include the co-ordinates were exactly the same as the colour picker. However, for MouseBox the co-ordinates needed to be offset to account for the navbar.
Just minus 50px or something along those lines and you will the get the colour at the spot you want. Maybe use MMouse(x,y,0,0); to check that the edited co-ordinate is the correct spot as well.
Simba Code:
program new;
{$I SRL/SRL.simba}
var
x,y:integer;
begin
setupsrl;
mousebox(555, 263,574, 281,mouse_move);
getMousePos(x,y);
writeln(tostr(x)+' '+tostr(y));
end.
Code:
Compiled successfully in 639 ms.
SRL Compiled in 16 msec
568 273
Successfully executed.
you shouldnt need to offset it because you pass your coords...