Bixby Sayz Posted July 26, 2012 Share Posted July 26, 2012 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. Quote Link to comment Share on other sites More sharing options...
FHannes Posted July 27, 2012 Share Posted July 27, 2012 I've added SmartClientIDEx, which will get the SMART PID from a TSCARClient object which represents a SMART client. Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted August 16, 2012 Author Share Posted August 16, 2012 (edited) 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 August 16, 2012 by Bixby Sayz Quote Link to comment Share on other sites More sharing options...