Difference between revisions of "Lua:getProcessIDFromProcessName"

From Cheat Engine
Jump to navigation Jump to search
(Created page with ''''function''' getProcessIDFromProcessName(''processname'') Searches the processlist for the given name and if found returns the processID. Returns '''nil''' if not found ===F…')
 
m (Added CodeBox Template.)
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''function''' getProcessIDFromProcessName(''processname'')
+
[[Category:Lua]]
 +
{{CodeBox|'''function''' getProcessIDFromProcessName(''processname'')}}
  
 
Searches the processlist for the given name and if found returns the processID. Returns '''nil''' if not found
 
Searches the processlist for the given name and if found returns the processID. Returns '''nil''' if not found
 
  
 
===Function Parameters===
 
===Function Parameters===
Line 15: Line 15:
 
|}
 
|}
  
 +
{{LuaSeeAlso}}
  
== See also ==
+
{{Process}}
* [[Lua]]
 

Latest revision as of 00:49, 5 December 2025

<> Lua API Reference

function getProcessIDFromProcessName(processname)

Searches the processlist for the given name and if found returns the processID. Returns nil if not found

Function Parameters[edit]

Parameter Type Description
processname String The processname to find

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Process Open / Creation

Process Lists / Modules

Process Control / Target State