SRL Archive - General

Fixed coordinates?


Zeta Matt

2012-05-28 10:40:15

I know how to make the program get the coordinates like… get the coordinates of where a DTM or bitmap is, but I want to tell where to click, like an autoclicker for some spot. All I wanna know is how to get the coordinates in anywhere of the whole screen (can be only inventory tough).

Abu

2012-05-28 12:27:04

Select the color picker tool on Simba and then click where you want to find out the co-ordinate.

The co-ordinates will then be displayed in your debug.

Justin

2012-05-29 07:46:51

From: archermaths
I know how to make the program get the coordinates like… get the coordinates of where a DTM or bitmap is, but I want to tell where to click, like an autoclicker for some spot. All I wanna know is how to get the coordinates in anywhere of the whole screen (can be only inventory tough).


Something like this


var i : integer;
if (FindDTM(DTM, x, y, MIX1, MIY1, MIX2, MIY2)) then
MMouse(x, y);
repeat
i := i + 1;
ClickMouse2(true);
until (i = 10);
end;

^^ untested code, typed up in the reply box. This can be made so much better with failsafe's ect..