View Full Version : Help With Mouse Moving
jibber
01-31-2012, 11:00 AM
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.
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
01-31-2012, 01:40 PM
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
01-31-2012, 02:08 PM
have you tried using ACA? which altar are you trying to find?
jibber
01-31-2012, 02:14 PM
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;
Try Auto Colour with FindObjTPA that's how I made my astral crafter.
Mat
Spiker
02-02-2012, 06:42 AM
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/2,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
02-03-2012, 07:53 PM
just use tpa broa, make your own finder function, bam set for life...
findcolorsspiraltolerance
tpatoatpa
middletpa
easy as 1 2 3 or pie...
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.