SRL Archive - OSR Help

SMART Won't take control


serajin

2012-05-28 23:48:00

Hey guys,

I got a new PC, and set simba up on it..and now..when I run a script..it won't take control of the mouse in SMART. It always wants my actual mouse to do things. Any ideas?


Also! If I attempt to use my RS client as my "client" i get an Error: Out of Range on the MMouse command. But if I open a smart window, and do it in there..it works fine, it just takes my mouse.

Runaway

2012-05-28 23:51:39

1) Is SMART included at the top?


{$i SRL/SRL/misc/smart.simba}

2) Is ActivateClient called sometime after SetupSRL?

serajin

2012-05-28 23:56:16

I have {$DEFINE SMART} which let's me open my SMART. I did not have activate client, but it never needed that before. I tried it anyways, after SetupSRL; and DeclarePlayers; I put ActivateClient;, it still request my mouse, even through a SMART window.

I went ahead and tested it on my old computer..and it's not working there either..so I am obviously missing something.. -_-

Runaway

2012-05-29 00:02:05

Is {$DEFINE SMART} the first thing included?

serajin

2012-05-29 00:03:40

Yes sir.


program new;
{$DEFINE SMART}
//{$i SRL/SRL/misc/smart.simba}
{$i srl/srl.simba}
{$i srl/srl/misc/Debug.simba}

procedure DeclarePlayers;

Runaway

2012-05-29 00:08:04

Hmm… this probably isn't the issue, but do you have the SMART vars declared (before SetupSRL)?


Smart_Server := 21;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;

serajin

2012-05-29 00:10:59

That..may have fixed it!

Yup, that fixed it! Thank you very much!

Runaway

2012-05-29 00:19:28

From: serajin
That..may have fixed it!

Yup, that fixed it! Thank you very much!


Cool, the one thing I didn't expect :p

No problem.