system.findprocess Function
Syntax
system.findprocess(string name)
Parameters
- name
Process image name to search for (first column in Task Manager → Processes)
Return Value
- number
Process ID of the first process matching name or 0 if not found.
Remarks
Example
local pid=system.findprocess("explorer.exe")
trace(tostring(pid))
See also
