Difference between revisions of "Lua:getProcessIDFromProcessName"

From Cheat Engine
Jump to navigation Jump to search
(Related Functions)
m (Added CodeBox Template.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
[[Category:Lua]]
 
[[Category:Lua]]
'''function''' getProcessIDFromProcessName(''processname'')
+
{{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 14:
 
|The processname to find
 
|The processname to find
 
|}
 
|}
 
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
  
=== Related Functions ===
+
{{Process}}
* [[Lua:openProcess|openProcess]]
 
* [[Lua:getProcesslist|getProcesslist]]
 
* [[Lua:getOpenedProcessID|getOpenedProcessID]]
 
* [[Lua:getProcessIDFromProcessName|getProcessIDFromProcessName]]
 
* [[Lua:createProcess|createProcess]]
 
* [[Lua:openFileAsProcess|openFileAsProcess]]
 

Latest revision as of 00:49, 5 December 2025

<> Function

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

See also[edit]

Lua
Script Engine

Related Functions[edit]

createProcess
openProcess
onOpenProcess
getForegroundProcess
getOpenedProcessID
getProcessIDFromProcessName
openFileAsProcess
saveOpenedFile
setPointerSize
setAssemblerMode
getProcesslist
getWindowlist
pause
unpause
targetIs64Bit
enumModules
closeRemoteHandle