SRL Archive - OSR Help

Moving mouse outside rs sceen


Troll

2010-12-09 12:37:04

Ok so ive made a scirpt, but when i run it, it moves the mouse tiny bits but constanly off to the right of the sceen in the black bit. Not sure why though?


Function FindChicken:Boolean;
Var X,Y:Integer;
// Me:TMe;
Begin

If Not LoggedIn Then Exit;
// Me := GetMe;
// If Me.InFight Then Exit;

If FindColorSpiralTolerance(x,y,3655910,MSX1,MSY1,MSX2,MSY2,41) Then
Begin
MMouse(x,y+RandomRange(1,4),2,2);
writeln('Moving Mouse');
//If (R_GetUpText = 'Chicken') Then
If IsUpText('ick') Then
Begin
GetMousePos(x,y);
writeln('Getting mouse pos');
If Random(20) = 1 Then
Begin
Mouse(x,y,0,0,True);
writeln('Clicking');
Result := True;
End Else Begin
Mouse(x,y,0,0,False);
//R_ChooseOption('Attack');
ChooseOption('ttac');
writeln('Right clicking');
Result := True;
End;
End Else writeln('Couldnt not find uptext');
End Else writeln('Did not find colour');
End;







begin
ActivateClient;
Wait(500);
FindChicken;
end.

Cstrike

2010-12-09 12:51:50

Used SetupSRL;?

BTW if you're going to keep the reflection stuff, best just to convert to reflection and use NPC finding.

Troll

2010-12-09 13:13:39

Oh silly me :p And im using color as main and i can add reflection later. The reflection stuff is what i will use when done, but i can do a quick test on rs, as i have to load up smart.

Death12652

2010-12-09 23:06:26

Wow don't see many Registered Users as a Lesser Demon. Either you ask a lot of questions or you contribute a lot. If i'm correct you will advance pretty quickly on SRL. Good luck to you and Cstrike is right, LISTEN to him (Suggestion).

TomTuff

2010-12-10 02:04:00

From: death12652
Wow don't see many Registered Users as a Lesser Demon. Either you ask a lot of questions or you contribute a lot. If i'm correct you will advance pretty quickly on SRL. Good luck to you and Cstrike is right, LISTEN to him (Suggestion).


It's just a matter of activity level and rep level. When/if i get my 2nd rep square, i'll get my KBD since my activity is high enough.

Markus

2010-12-10 02:53:11

You don't need rep for kbd ;) Seems you already got it [/offtopic]
SetupSRL; indeed or add mousespeed := 20; somewhere instead of setupsrl (not recommended!).

TomTuff

2010-12-10 03:07:39

From: Markus
Seems you already got it


lolwut… i see it now!

LAST OFFTOPIC POST, NO MORE ABOUT RANKS :P