SRL Archive - OSR Help

Mouse moving randomly...


praystation

2013-03-23 13:59:03

Hi when i run a script the bot takes control of my mouse and randomly move all around my simba toolbar instead of going to smart and running the script, what is the problem?

Sjoe

2013-03-23 14:00:27

Drag the green crosshair from simba to your rs browser

praystation

2013-03-23 14:03:30

I can't it keeps getting back to a random spot every time, is it an issue whit the script? Heres the script

program kFish;
{$DEFINE SMART8}*
{$I SRL/SRL.Simba}
{$I SRL/SRL/Misc/Debug.Simba}
{$I P07Include.Simba}


var
x,y,logDTM,oakDTM,fishDTM,TinderDTM,test: Integer;
Text: TStringArray;
procedure DTMZ;
begin

logDTM := DTMFromString('mwQAAAHic42RgYHBlYmDwA+JAIPYFYkcgNgdiYyhtA8RCjAwMAkDMA8RsQMwAxExAzAXEgkAsChJjYCQCEwYkmQIA5cIC7A==');
fishDTM := DTMFromString('mwQAAAHic42RgYPBmYmAIAeJEII4D4gAg9gRiVyAOBuJwIC5jZGAoBuJUIE4C4nQgzgXiEigfJM7AwEgEJgxIMgUAFYMG3A==');

tinderDTM := DTMFromString('m1gAAAHic42JgYJjAxMAwHYjnAvFCIF4KxAuAeA4Q9wJxBxD3APF7oNpPQPwOiF8C8VMgfgDEN6D0c6gcAwMjkZg4QLppAOzrDyQ=');
oakDTM := DTMFromString('mFQEAAHic42VgYJjAxMAwD4iXAPECIJ4GxN1A3A7lLwXiPiCeDcRToXKijAwMgkDMB8T/gWYwAGkWIOaG0pyMELG/QEoYqhYsQDImHVBsCwCL+Qpl');

writeln('Loaded DTM''s');
end;
procedure DTMFree;
begin
FreeDTM(fishDTM);
FreeDTM(oakDTM);
FreeDTM(logDTM);
FreeDTM(tinderDTM);
writeln('Freed DTM''s');
end;
procedure goFish;
begin
P07_TabInventoryTab(4);
repeat
If P07_FindObjCustom(x, y, ['Raw','ure', 'Fishing','pot'], [14597535, 14597268, 15123625, 14398100, 15058085], 5) Then
begin

Sjoe

2013-03-23 14:06:12

Before you start the script. Drag the green crosshair on simba to your RS Client
Your RS Client will turn red. That means u did it correctly.

Make sure simba isn't in the way of your client; (or U could use ActivateClient; ) in your main loop to prevent that.

The Killer

2013-03-23 14:06:16

From: praystation
I can't it keeps getting back to a random spot every time, is it an issue whit the script? Heres the script

program kFish;
{$DEFINE SMART8}*
{$I SRL/SRL.Simba}
{$I SRL/SRL/Misc/Debug.Simba}
{$I P07Include.Simba}


var
x,y,logDTM,oakDTM,fishDTM,TinderDTM,test: Integer;
Text: TStringArray;
procedure DTMZ;
begin

logDTM := DTMFromString('mwQAAAHic42RgYHBlYmDwA+JAIPYFYkcgNgdiYyhtA8RCjAwMAkDMA8RsQMwAxExAzAXEgkAsChJjYCQCEwYkmQIA5cIC7A==');
fishDTM := DTMFromString('mwQAAAHic42RgYPBmYmAIAeJEII4D4gAg9gRiVyAOBuJwIC5jZGAoBuJUIE4C4nQgzgXiEigfJM7AwEgEJgxIMgUAFYMG3A==');

tinderDTM := DTMFromString('m1gAAAHic42JgYJjAxMAwHYjnAvFCIF4KxAuAeA4Q9wJxBxD3APF7oNpPQPwOiF8C8VMgfgDEN6D0c6gcAwMjkZg4QLppAOzrDyQ=');
oakDTM := DTMFromString('mFQEAAHic42VgYJjAxMAwD4iXAPECIJ4GxN1A3A7lLwXiPiCeDcRToXKijAwMgkDMB8T/gWYwAGkWIOaG0pyMELG/QEoYqhYsQDImHVBsCwCL+Qpl');

writeln('Loaded DTM''s');
end;
procedure DTMFree;
begin
FreeDTM(fishDTM);
FreeDTM(oakDTM);
FreeDTM(logDTM);
FreeDTM(tinderDTM);
writeln('Freed DTM''s');
end;
procedure goFish;
begin
P07_TabInventoryTab(4);
repeat
If P07_FindObjCustom(x, y, ['Raw','ure', 'Fishing','pot'], [14597535, 14597268, 15123625, 14398100, 15058085], 5) Then
begin

That's not all your script :p

praystation

2013-03-23 14:07:57

OHhhhhh okay i understood what you mean't, but the problem is that even if it controls the client now, it keeps taking control of my mouse while im writing this

Sjoe

2013-03-23 14:19:02

Euh ok? That's normal. If u don't want it to control it then put

if using SMART8: {$DEFINE SMART8} or
if using SMART 7.2: {$DEFINE SMART}

on top of your script like killer did.

The Killer

2013-03-23 14:26:11

From: Sjoekeloe
Euh ok? That's normal. If u don't want it to control it then put

if using SMART8: {$DEFINE SMART8} or
if using SMART 7.2: {$DEFINE SMART}

on top of your script like killer did.


I didn't do it, I quoted him. Don't know why there's a * there though.

praystation

2013-03-23 14:27:15

Thats what i did but it still takes control of my mouse and moves it randomly in my client box ( whitout clicking anywhere)
Could it be a script error?

praystation

2013-03-23 14:39:44

Well i guess it is, thanks for the helps guys.

litoris

2013-03-23 16:23:14

You aren't running SetupSRL, and because of that it doesn't use the SMART window.