The following XML file contains examples of most of the XML elements that can be used to compose action sequences in Desktop Automation Services.
<application-runner-script> <action name="startup"> <test-app-running application="sltray.exe"> <if-true> </if-true> <if-false> <hide-desktop/> <run-application application="sltray.exe" parameters="" on-exit-action="restartNSL" serial="true" interval="500"/> </if-false> </test-app-running> </action> <action name="restartNSL"> <test-app-running application="sltray.exe"> <pause interval="500"/> <if-true> </if-true> <if-false> <run-application application="sltray.exe" parameters="" on-exit-action="restartNSL" serial="true" interval="500"/> </if-false> </test-app-running> </action> <action name="loggedin"> <pause interval="1000"/> <unhide-desktop/> <!-- Starting the chrome browser with the url mention in the parameters --> <run-application application="chrome.exe" parameters="https://www.msdn.com" on-exit-action="" serial="true" interval="500"/> </action> <action name="logoff"> <!-- <message-box caption="logoff" window-name="Session logoff"/> --> <pause interval="2000" /> <ad-logout/> <pause interval="1000" /> <!-- delay for NSL to successfully shutdown --> <kill-app application="chrome.exe"/> <hide-desktop/> <run-application application="sltray.exe" parameters="" on-exit-action="restartNSL" serial="true" interval="500"/> </action> <action-triggers> <!-- action executed when user logs in to AD through SecureLogin --> <on-ad-login action-name="loggedin"/> <on-hot-key modifiers="ctrl" virtual-key="l" action-name="logoff"/> <on-hot-key modifiers="ctrl" virtual-key="s" action-name="loggedin"/> <!-- This is for contactless smart card is tapped on and tapped out --> <on-Tap-cardmon action-name="logoff" card-tapon="" LoginAction="loggedin" TapCardSwitchUser="true"/> </action-triggers> </application-runner-script>
NOTE:Additional action file examples can be found in SecureLogin\Tools\DAS Editor\Script Samples\XML on the SecureLogin CD image.