Available actions

application

The application action is used to start an external application.

[Action]
01=<name> application "<application path>" <application arguments>
Example 1. application
[Action]
01=About application "%ProgramFiles%\NetiD\Client\netid.exe" -dialog about

close

The close action sends a close message to the specified window. If the window is not closed within 3 seconds, we try to terminate the process using kill.

[Action]
01=<name> close <window name>
Example 2. close
[Action]
01=Close close {string:1003} - {product-name}

kill

The kill action is used to terminate a process.

[Action]
01=<name> kill <process id> (1)
01=<name> kill <path> (2)
1 Terminate a single process specified with process ID.
2 Terminate all processes that uses a specified application path.

The command always terminates a process by using process ID. So there will be a search for processes that uses a specific application path and then terminate when the path is the same.

To avoid infinite loops, the search for new processes to terminate is stopped if it is unable to terminate a process because of for example insufficient privlieges.

The kill action is the internal way to terminate a process. Usually, each platform has its own way to terminate processes, such as taskkill for Windows. So another way to kill processes is to use the application action with the platform command.

Example 3. kill
[Action]
01=Kill kill %ProgramFiles%\NetiD\Client\netidapp.exe

lock

The lock action locks the current desktop session. Can be specified with the option active to only lock when logged on using our internal credentials, for example a certificate.

[Action]
01=<name> lock
01=<name> lock -active
Example 4. lock
[Action]
01=Lock lock -active

open

The open action is almost the same as the script action. The only difference is that the process is started visible, so the end-user can see the result.

[Action]
01=<name> open <script path>
Example 5. open
[Action]
01=Refresh open %ProgramFiles%\NetiD\refresh.bat

script

The script action is used to run any script without arguments, and will use the platform’s open action to start a new process. The result is almost the same as double-click on a file in the file explorer on respective platform. This makes sure that only scripts allowed by the platform are executed. The process is started silently, and thus invisible for the end-user.

[Action]
01=<name> script <script path>
Example 6. script
[Action]
01=Refresh script %ProgramFiles%\NetiD\refresh.bat

self

The self action calls the internal command line actions.

[Action]
01=<name> self <command>
Example 7. self
[Action]
01=About self -dialog about

self-force

The self-force action calls the internal command line actions, but without internal access control. See NameAllow and NameDeny.

[Action]
01=<name> self-force <command>
Example 8. self-force
[Action]
01=ClearCache self-force -cache clear

sleep

The sleep command pauses the current process for a specified time.

[Action]
01=<name> sleep <milli-seconds>
Example 9. sleep
[Action]
01=Sleep sleep 3000