Log in

View Full Version : How would I go about clicking this...



Imagine
04-14-2012, 01:32 AM
http://screensnapr.com/e/uobGCZ.png

So if I wanted to click the right door in order to re-enter the Giant Spiders Room, how would I distinguish it from the left door/how could I make SMART find it and click it?

riwu
04-14-2012, 02:14 AM
use spiral functions? it will search from the middle so it will click the door nearer to u. If u need to get nearer to the door first then just use MMdot to click on the yellow npc dots.

Alternatively, u can let the script adjust to a certain angle/compass view such that the 2 doors will look very different and u can just use dtm/bitmap etc to click the desired door.

Sin
04-14-2012, 02:55 AM
ClickMouse2(True);
;)

Total
04-14-2012, 02:56 AM
ClickMouse2(True);
;)

Trolololol:garfield::garfield::garfield::garfield:

Gucci
04-14-2012, 04:44 AM
Have the script use a certain angle like compass at N and angle at high then make a DTM that will only highlight the door you want and have it click that door.

Something like this:

procedure ClickDoor;
var
x, y: integer;
aFound: Extended;
begin
MakeCompass('N');
SetAngle(SRL_ANGLE_HIGH);

if FindDTMRotated(blah blah blah..) then
begin
GetMousePos(x, y);
Mouse(x, y, 2, 2, True);
end;
end;