Jump to content
Bixby Sayz

Get currently paired SMART Id

Recommended Posts

Maybe I'm just being dense, but I don't see an easy way to get the ID of the currently paired SMART. It is returned when initially pairing SMART, but OSI appears to just discard it rather than store it.

 

Was looking at SmartKillClient which requires the id of the client to kill (in this case I want the currently paired client). The purpose of all this was to unload/reload SMART when you get that stupid "your session has now ended" message.

 

I might look at figuring out Git so I can add a var for the client id and a func to reload smart. But right now I'm on vacation and it is time for a swim in the pool, a cool drink, and a loooooong nap in the sun. In that order.

Link to comment
Share on other sites

Messing around with this. Am I missing something?

 

When I try it the current SMART client window closes as expected, but the smartremote32 window remains open. It then spawns a second smartremote32 which loads a new SMART client window.

 

[sCAR]program New;

 

{$DEFINE RS2}

{$DEFINE OSI_Color_Anti_Randoms}

{$DEFINE SMART} // Comment out to disable SMART

 

{$I OSI\OSI.scar}

 

procedure ScriptTerminate;

begin

FreeOSI;

end;

 

begin

SetUpOSI;

ShowMessage('do reload');

SmartKillClient(SmartClientIDEx(Smart_Client));

InitiateSMART;

ShowMessage('done');

end.[/sCAR]

 

Edit: Disregard. It works fine on one machine but not on the 2 I first tried. Odd. I even cleaned everything off including settings and did a fresh install of Java and SCAR to try to sort it out on the one machine.

 

Although on all machines SMART continues to run after closing out SCAR. Tried it with Simba and the last SMART window is forced close when you exit Simba. Was kinda expecting the same behaviour.

Edited by Bixby Sayz
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...