SRL Archive - Help

Help With Mouse Moving


jibber

2012-01-31 06:00:42

im trying to detect an object on screen (alter) but all the colours are grey and it clicks other places.

ive tried dtms but it doesnt seem to find it either.

is there a function to click on screen (middle?) or put in cords where the mouse should click on screen? and a example please?

thanks in advance.

Er1k

2012-01-31 07:09:54

Mouse(x, y, 2, 2, mouse_left);

For middle of the screen, try MSCX and MSCY

E: A tip. In general, absolute screen coords clicking is not advised unless you're sure what you're doing.

jibber

2012-01-31 08:40:09

there isnt many mouse move help pages i found which can help.

it clicks the write object the first time, emptys pouch and clicks somewhere else, ive change the colours a few times, just want it to click back on the same spot it did before.

Nataurs

2012-01-31 09:08:24

have you tried using ACA? which altar are you trying to find?

jibber

2012-01-31 09:14:55

Nature.

this sometimes works. but not always :S all the colours are the same, jagex thought it through :mad:

I can get it in the alter everytime perfectly.

just when im in there i cant seem to get it to always click on alter. unless i go back to my method before but that doesnt allow me to use pouches.




procedure craftrunes;

var
x,y:integer;
Angle: Integer;

begin
MakeCompass(90);
(findobjcustom(x,y,['lter'],[4606279,8028028,8159614],1));
(WaitUptext('raft', 100))
Writeln('Alter Found');
(Mouse(x, y, 0, 0, true));
writeln('waited 1seconds');
wait (2500 + random (400));

//1st lot crafted - emptying pouchs

MouseItem(5,0); //Pouch 1.
wait(400 + random(75));
ChooseOption('mpty')
wait(1500 + random(75));



MouseItem(9,0); //Pouch 2.
wait(200 + random(75));
ChooseOption('mpty')
wait(1500 + random(75));
begin

(findobjcustom(x,y,['lter'],[8225663,7962491,8094077],1));
(WaitUptext('raft', 100))
Writeln('Alter Found');
(Mouse(x, y, 0, 0, true));
writeln('waited 1seconds');
wait (800 + random (400));


MouseItem(13,0); //Pouch 3.
wait(500 + random(75));
ChooseOption('mpty')
wait(1500 + random(75));


MouseItem(17,0); //Pouch 4.
wait(200 + random(75));
ChooseOption('mpty')
wait(1500 + random(75));
begin


(WaitUptext('raft', 100))
Writeln('Alter Found');
(Mouse(x, y, 0, 0, true));
wait (600 + random (400));


end;
end;
end;

Mat

2012-01-31 16:18:24

Try Auto Colour with FindObjTPA that's how I made my astral crafter.
Mat

Spiker

2012-02-02 01:42:52

From: Mat
Try Auto Colour with FindObjTPA that's how I made my astral crafter.
Mat


Yes, personally I don't like FindObjCustom very much, and to solve your problem, besides using TPAs and what not, you should search a portion of the main screen instead of the whole main screen, if the item/object you are looking for is usually in one specific part of it. For example:
FindObjTPA(x, y, [45345345], MSX1, MSY1, MSX2, MSY2[B][COLOR="Red"]/2[/COLOR][/B],50,  ['hop','own','illo','willo'])
This would only search the top half of the screen for the color(object/item) you are looking for. You can alter the coordinates on the main screen so that the function only scans the part of the screen you want it to, reducing the chance that it will confuse the object/item with another.

Good Luck

m3gaman3g3nd

2012-02-03 14:53:06

just use tpa broa, make your own finder function, bam set for life…


findcolorsspiraltolerance

tpatoatpa

middletpa

easy as 1 2 3 or pie…