Lua:getProcesslist
Jump to navigation
Jump to search
Returns a table with the process list (PID → name) if Strings is not set. If Strings is provided, it fills the given Strings object with the system's process list.
Format: %x - pidname
Function Parameters[edit]
| Parameter | Type | Description |
|---|---|---|
| Strings | Strings | Optional. If provided, fills this Strings object with the process list. |
Example[edit]
1 -- Without Strings object
2 local plist = getProcesslist()
3 for pid, name in pairs(plist) do
4 print(string.format("0x%X - %s", pid, name))
5 end