Difference between revisions of "Lua:openProcess"

From Cheat Engine
Jump to navigation Jump to search
(Created page with ''''function''' openProcess(''processname'') '''function''' openProcess(''processid'') Causes cheat engine to open the provided processname or processid. ===Function Paramete…')
 
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''function''' openProcess(''processname'')
+
[[Category:Lua]]
 +
'''function''' openProcess(''processname'')<br>
 
'''function''' openProcess(''processid'')
 
'''function''' openProcess(''processid'')
  
Line 5: Line 6:
  
 
Causes cheat engine to open the provided processname or processid.
 
Causes cheat engine to open the provided processname or processid.
 +
 +
Please note that if you provide an integer in the form of a string openProcess will look for a process that has as name the specified number. Provide an integer if you wish to specify the PID.
 +
 +
Example:
 +
  openProcess("game.exe")
 +
  openProcess(7890)
 +
  openProcess(tonumber("7890"))
  
  
Line 16: Line 24:
 
|String
 
|String
 
|The processname to find and open
 
|The processname to find and open
 +
|-
 
|processid
 
|processid
 
|integer
 
|integer
Line 22: Line 31:
  
  
== See also ==
+
{{LuaSeeAlso}}
* [[Lua]]
+
 
 +
=== Related Functions ===
 +
* [[Lua:getProcesslist|getProcesslist]]
 +
* [[Lua:getOpenedProcessID|getOpenedProcessID]]
 +
* [[Lua:getProcessIDFromProcessName|getProcessIDFromProcessName]]
 +
* [[Lua:createProcess|createProcess]]
 +
* [[Lua:openFileAsProcess|openFileAsProcess]]

Latest revision as of 03:24, 18 April 2018

function openProcess(processname)
function openProcess(processid)


Causes cheat engine to open the provided processname or processid.

Please note that if you provide an integer in the form of a string openProcess will look for a process that has as name the specified number. Provide an integer if you wish to specify the PID.

Example:

 openProcess("game.exe")
 openProcess(7890)
 openProcess(tonumber("7890"))


Function Parameters[edit]

Parameter Type Description
processname String The processname to find and open
processid integer The processID to find and open


See also[edit]

Related Functions[edit]