Process.suspended readonly property
This property checks if the process is suspended, returning a boolean
value.
Example
local sysutils = require "sysutils"
local ui = require "ui"
-- create a process launching notepad.exe
-- on Windows 11, you will need : Settings → Apps → More settings → App execution aliases → Disable the “Notepad” alias
-- to bring back the old notepad app
local p = sysutils.Process('notepad.exe')
-- start the process
p:spawn()
sleep(1000)
ui.info("Process will be suspended for 5sec")
sleep(5000)
if p.suspended then
ui.info("Process will now be resumed")
end