Milestone XProtect Smart Client 2013 User Manual
Page 167

Milestone XProtect
®
Smart Client
2014
User's Manual
www.milestonesys.com
167
Scripting
If you use Windows authentication (current user), the UserName and Password parameters would
not be necessary, and the example looks like this:
Client.exe -ServerAddress="http://ourserver" -AuthenticationType
WindowsDefault
Script
Refers to a full path to an .scs script (a script type targeted at controlling the XProtect Smart Client).
The following example uses an .scs script to login:
Client.exe -Script=c:\startup.scs
Example of an .scs script for logging in to http://ourserver with the current Windows user:
<ScriptEngine>
<Login>
<ServerAddress>http://ourserver</ServerAddress>
<AuthenticationType>WindowsDefault</AuthenticationType>
</Login>
</ScriptEngine>
You can use many of the XProtect Smart Client 's function calls (see View a list of function calls (see
"Scripting" on page 165)) to add further functionality to .scs scripts. In the following example, we have
added a line so the .scs script from the previous example will also minimize the XProtect Smart Client
application:
<ScriptEngine>
<Login>
<ServerAddress>http://ourserver</ServerAddress>
<AuthenticationType>WindowsDefault</AuthenticationType>
</Login>
<Script>SCS.Application.Minimize();</Script>
</ScriptEngine>
Format
Valid parameter formats are:
{-,/,--}param{ ,=,:}((".')value(",'))
Examples:
-UserName Tommy
--UserName Tommy /UserName:"Tommy" /UserName=Tommy -Password 'Tommy'