SRL Archive - OSR Help

Precise Clicking


Footy

2012-06-28 18:30:36

I'm working on my Agility script, I cant get either of the gnome agility course scripts to work. Im trying to get my script to click on the rope in the gnome agilility course, but its not detecting it. This is my procedure to click it.


Procedure Rope;
var
x, y:integer;
begin
if findcolorspiraltolerance(x, y, 5272207, 57, 180, 92, 185, 10) then
Mouse(x, y, 1, 1, 1);
wait(randomrange(7700, 7862));
end;

Also, can someone show me how to add a failsafe, to be sure it properly clicked on the obstacle? Thanks!
Foooty

Based Lord

2012-06-28 18:36:23

Try using Auto Color Aid with CTS 2. And you can generate a AutoColor Function which is generally fairly accurate. If you need any help with it let me know

Footy

2012-06-28 18:41:46

Ill try that and see if it works. Im probably not even gonna use this script. Testing it and making it, im almost 15 agility…

putonajonny

2012-06-28 19:14:18

you can use the function DidRedClick, it returns true if the red cross hair appears on screen, you should also check the uptext before you click, use WaitUpText for that