$system service actions

Allows you to apply service actions to the system.


Example

Running this code will create the UI buttons named "Status", "Stopped", and "Started" placed above the UBot Browser, assigned with the service actions "Status", "Stopped", and "Started", respectively. All buttons will be assigned to the service name "TeamViewer9".

ui button("Status") {
    alert($plugin function("OS Automation.dll", "$system service actions", "TeamViewer9", "Status"))
}
ui button("Stopped") {
    alert($plugin function("OS Automation.dll", "$system service actions", "TeamViewer9", "Stopped"))
}
ui button("Started") {
    alert($plugin function("OS Automation.dll", "$system service actions", "TeamViewer9", "Started"))
}

Was this helpful?

Previous Article

$system screen resolution