app window lock

Allows you to lock specific application.


Example

Running this code will create UI buttons showing options for locking specific applications.

This code will create a UI button that will run “Notepad”.

This code will create two UI buttons that will lock and unlock the “Notepad”.

This is shown in the UBot Browser.

ui button("Run Notepad") {
    shell("cmd /c start \"\" \"notepad.exe\"")
}
ui button("Lock") {
    plugin command("Desktop Automation.dll", "app window lock", "notepad", "", "True")
}
ui button("Un Lock") {
    plugin command("Desktop Automation.dll", "app window lock", "notepad", "", "False")
}

Was this helpful?

Previous Article

app window layer