SRL Archive - Help

simba break out of loop when its not supose to.


tom99

2011-05-17 11:37:47

Hello this loop stop when its not supose to

procedure ventforlogginn;
var
clogin: boolean;
begin
repeat
if(getcolor(374, 184)=3093559) and (getcolor(319, 183)=3093559) and (getcolor(410, 183)=3093559) and (getcolor(450, 183)=3093559) then clogin:=true;
wait(1000);
until(clogin = true)
clogin:=false;
writeln('logger inn nĂ¥');
end;
why is this ? im pretty sure it didnt find those colors it just skipped the loop.



Seems like it was fixed when i putted wait infront of colorcheck not after, but now another problem rs dont detect that i hit the login button wtf ?

im wondering of, this syntax shoud login in a player at login screen right ?
clickmouse(377, 308,1);

Brandon

2011-05-17 12:00:24

cLogin by default will already have a value of 0.. so set it false before the loop..

tom99

2011-05-17 12:02:53

thats not why its false by default, break didnt work either.

But i got another issue and that is rs dont react when i want simba to click on the login button.

footballjds

2011-05-17 12:26:39

use:
Mouse(123,123,1,1,True);

tom99

2011-05-17 13:10:56

what does that command is it the same as clickmouse ? (im use to scar)

footballjds

2011-05-17 13:14:13

then use ClickMouse(3,12, True);

tom99

2011-05-17 13:19:37

simba dont support that, it got integer at end, reference http://docs.wizzup.org/simba/scriptref/mouseandkeyboard.html

footballjds

2011-05-17 13:44:40

my bad, i thought you were going to use scar…
:p
If you are going to use simba use what i previously posted and i'll explain it…
The mousex and mousey are the X, Y coords you want to click
The ranx and rany and a bit of randomness to add to the X, Y coords so that your not coord clicking.
left is boolean, true is left false is right click.
Mouse(0, 0, 255, 255, True); will click at the coords 0, 0 but add random 255 to each coord first.

Mouse(255, 255, 0, 0, True); will left click coords 255, 255 with no randomness.

tom99

2011-05-17 13:53:25

I understand now thnx rep+ ;)

Mouse(255, 255, 0, 0, True); is equal to clickmouse(0+random(255),0+random(255),true); in scar.

footballjds

2011-05-17 14:00:53

From: tom99
I understand now thnx rep+ ;)

Mouse(255, 255, 0, 0, True); is equal to clickmouse(0+random(255),0+random(255),true); in scar.


click mouse and Mouse are VERY different.
Clickmouse is insta click.
Mouse moves your mouse at a rate you can set(SRL auto sets it to 15) and clicks with a 10-50 ms wait before releasing the mouse button.

program New;
{$i SRL\SRL.scar}
begin
setupSRL;
Mouse(1,1,1,1,True);
end.
works in scar the same way:
program New;
{.include srl/srl.scar}
begin
setupSRL;
Mouse(1,1,1,1,True);
end.