Hey, i think that at the moment SRL ClickToContinue is not working, so i tried make a new one, and here is what i got :)
[PHP]function ClickContinueEx(Click, Wait: Boolean): Boolean;
var tx, ty :Integer;
begin
if not AreTalking then Exit;
Result := FindColor(tx, ty, 16711680, 171, 432, 468, 465);
if (Result and Click) then begin
Mouse(tx,ty, 180, 2, True);
MouseBox(11, 350, 504, 416, 3);
if Wait then ChatWait;
end;
end;[/PHP]
~Home
Wanted
2009-07-23 03:34:41
Why do people use Tolerance if they set it to 0?
From: IceFire908
Why do people use Tolerance if they set it to 0?
Well i was not sure is FindColors Scar 3,20 Function or was it SRL Function :)
~Home
Da 0wner
2009-07-23 03:56:26
Mouse(Pointss[Numss].x, Pointss[Numss].y, 180, 2, True);
?
Can't you just do
Mouse(Points[0].x, Points[0].y, 180, 2, true);
Numss is never set, so it is 0..and you could just use FindColor if no tolerance and you only use one point.
From: Da 0wner
Mouse(Pointss[Numss].x, Pointss[Numss].y, 180, 2, True);
?
Can't you just do Mouse(Points[0].x, Points[0].y, 180, 2, true);
Numss is never set, so it is 0..and you could just use FindColor if no tolerance and you only use one point.
Hmm.. What i have understood wrong :) Well it still works fine thought, and i have always used those Numms (:
But thanks Da Owner ( Sometimes i feel, that i should retire.. :) )
~Home
Wanted
2009-07-23 04:12:30
From: Home
Well i was not sure is FindColors Scar 3,20 Function or was it SRL Function :)
~Home
Oh ok, I thought maybe it had to do with some code efficiency thing no one told me about.
I'll give this a code of yours a try but I'll probably edit parts of it and throw it in my rune crafter.
From: IceFire908
Oh ok, I thought maybe it had to do with some code efficiency thing no one told me about.
I'll give this a code of yours a try but I'll probably edit parts of it and throw it in my rune crafter.
Ye of course.. This was just a test that am i able to do anything on thse days :)
What i would to edit:
Make it more simple ( To FindColor ) Remove useless variables. And voila :)
~Home
Nadeem
2009-07-23 04:54:53
Hey nice :) btw there is not point for setting Result to false? FindColorsTolerance will return false if it finds no colors right?
~NS
From: Nadeem
Hey nice :) btw there is not point for setting Result to false? FindColorsTolerance will return false if it finds no colors right?
Either way I believe all Booleans are set to False by default anyways.
Nice job though Home :)
Nava2
2009-07-23 08:10:50
Someone remind me and I will rewrite click to continue tomorrow. It currently is really slow.
Floor66
2009-07-23 11:04:46
Really slow/not working for me :p
+1 for you for going to make it!
From: Nava2
Someone remind me and I will rewrite click to continue tomorrow. It currently is really slow.
Is that because it loads a bitmap mask every time?
If it is, why not include it in SetupSRL;
Great Work Home - The more you do the better you get.
Well edited and fixed everything to be more simple yet more effective :)
~Home
P.s First post..
Nadeem
2009-07-23 16:21:01
Hey,
Why don't you try something like this:
function ClickToContinue(Click, Wait: Boolean): Boolean;
begin
Result := GetColor(629, 649) <> 2370867;
if (Result and Click) then
begin
Mouse(218 + Random(137), 464 + Random(4), 0, 0, true);
if Wait then ChatWait;
end;
end;
Im on Ubuntu right now and SCAR doesn't run properly so can't really test it :/
~NS
Narcle
2009-07-23 17:49:20
I don't like Color searching for things used a lot and could mistake something else similar that pops up.
Sir R. M8gic1an
2009-07-23 17:58:47
From: Narcle
I don't like Color searching for things used a lot and could mistake something else similar that pops up.
still faster than bmps…
I say FindColorsTolerance in a small area with color count. very accurate and fast.
~RM
From: Narcle
I don't like Color searching for things used a lot and could mistake something else similar that pops up.
Aman, also Nadeem the click to continue text moves about in the chatbox, so your idea wouldn't work :)
Daniel
2009-07-23 18:00:01
Couldn't you just use mouse with static coordinates, since (if my memory serves me correctly) it stays in the one place?
EDIT: Nevermind, i thought you were talking about the click to continue button which is gold and appears as soon as you log into RuneScape…
From: Rasta Magician
still faster than bmps…
I say FindColorsTolerance in a small area with color count. very accurate and fast.
~RM
Bitmaps are faster ;)
Narcle
2009-07-23 18:34:02
[QUOTE=Dan's The Man;605925]Couldn't you just use mouse with static coordinates, since (if my memory serves me correctly) it stays in the one place?
EDIT: Nevermind, i thought you were talking about the click to continue button which is gold and appears as soon as you log into RuneScape…
Bitmaps are faster ;)
Only if the Bitmap is preloaded, if its reloaded each time the function is called… I'm sure its slower.
Narcle
2009-07-23 18:50:50
From: NaumanAkhlaQ
Load it in setupsrl?
I believe this is avoided for slower computers. Eventually we'd have to many preloaded bitmaps etc. just for the compile… I don't know the exact amount of ram they take up but I'm sure it'll affect performance.
I think if done right you can just load the bitmap once and use a Global variable to confirm its loaded… We could really use a "IsBitmapLoaded" function of sorts for cases like these.
Sir R. M8gic1an
2009-07-23 19:09:56
From: Narcle
I believe this is avoided for slower computers. Eventually we'd have to many preloaded bitmaps etc. just for the compile… I don't know the exact amount of ram they take up but I'm sure it'll affect performance.
I think if done right you can just load the bitmap once and use a Global variable to confirm its loaded… We could really use a "IsBitmapLoaded" function of sorts for cases like these.
Bitmaps.scar then? ;)
LoadSRLBitmap checks if it is loaded already or not, and now with it being set up with constants it has become extremely easy to just simply add new ones.
~RM
Well in my CLicktocontinue it checks are we in conversation ( So it won't mess with normal chat ) And chat mouseBox will move your mouse around chat so it won't be up of click here to continue text ( If mouse is up on that the text will change color )
A Little explanation.
~Home
Nadeem
2009-07-24 01:32:48
From: NaumanAkhlaQ
Aman, also Nadeem the click to continue text moves about in the chatbox, so your idea wouldn't work :)
I know that :p Which is why thats not the color of the text, i took a point from the scroll bar arrow. Because when it asks to continue it does not show the scroll bar, all other times it will show the scroll bar.
~NS
Daniel
2009-07-24 12:35:57
From: Narcle
Only if the Bitmap is preloaded, if its reloaded each time the function is called… I'm sure its slower.
Ohh, you meant it like that..