SRL Archive - RS3 Script Requests

Color Range Script


CookieMonster12

2011-04-12 15:57:55

Hello, longtime lurker here. I was wondering if anyone could make a script that would click from a range of colors with a time delay between clicks

YoHoJo

2011-04-12 16:04:33

Can you tell/show us an example of what you are planning to use this for if it's anything specific? It would help out a lot to know/see what you want.

HarryJames

2011-04-12 16:05:15

So do you want a Ranged Fighter then?

Xanith

2011-04-12 16:07:52

I think he wants to click a certain color with a tolerance with a time between clicks.

Edit: maybe not a tolerance but an array of colors.

Brandon

2011-04-12 16:09:57



Colours[I] := [1000, 2000, 3000, 4000, 5000, 6000, 7000];

for I to High
do
if (FindColorTolerance(x , y, Colours[I], x1, y1, x2, y2, 15)) then
begin
MMouse(x, y, 1, 1);
Wait(1000);
end;

Or were u talking about going through an array of colours? and clicking those??
Dont even know if what i wrote above is right.. usually simba corrects me :) But thats the idea I got from your question.. Im a c++ guy so yeah trouble with arrays and loops in simba.. pretty different.

YoHoJo

2011-04-12 16:12:59

program new;
var x,y:Integer;

const
COLOR_CODE= 1;

begin
Repeat
If FindColorTolerance(x, y, COLOR_CODE, 1, 1, 200, 200, 50) Then
Begin
MoveMouse(x,y);
ClickMouse(x,y,1);
wait(1000);
End;
Until(False)
end.

Super basic example concept :p.
NOT safe for runescape.

Fill in a color code.
It searches within a box bounded by 1,1, 200,200 and has a tolerance of 50 for the color. lolololol:spot:

Troll

2011-04-12 16:21:32

Clicks colors with no toll


program new;
{$i SRL\SRL.scar}



Procedure ClickIt(Colours:Array of Integer; TimeToWait:Integer; LeftClick:Boolean);
Var I,x,y:Integer;
Begin
For I:= 0 To High(Colours) Do
Begin
FindColor(x,y,Colours[I],0,0,1000,1000); //not sure how to find client size
Mouse(x,y,0,0,LeftClick);
Wait(TimeToWait);
End;
End;

begin

ClickIt([1,2,3,4,5],1000,True); //Would click colours 1,2,3,4,5 and wait a secound after each and it would left click

end.


EDIT: Dang learn to refresh the page

CookieMonster12

2011-04-12 16:40:11

just don't want to pay attention to clicked links

WT-Fakawi

2011-04-12 16:52:10

From: CookieMonster12
Hello, longtime lurker here.
April 2011?

Anyway: I would make a bitmap of a piece of the text and use FindBitmapTolerance to find all different colored text. Or you could use a simple if FindColor then ClickMouse kinda construction. Shouldn't be too hard.

CookieMonster12

2011-04-12 16:58:44

Sorry, I didn't have a need for a username before this because I don't post.

YoHoJo

2011-04-12 17:46:03

I agree with Fakawi, since the letters don't change just making a bitmap tolerance/bitmap mask would work for all of those texts.

rogeruk

2011-04-12 19:29:19

From: CookieMonster12

Would be the example and yes it isn't for rs. The link to click is the 'train again' in the lighter color, see above for example.

Just need a delay between clicks and a pause ability because every 15-25minutes there is a captcha that needs to be filled out. (I would be at computer to moniter this, just don't want to pay attention to clicked links)


What is this for?

If its web browser then just make a quick VB bot. (Can handle direct link clicks)