Difference between revisions of "Lua:openProcess"

From Cheat Engine
Jump to navigation Jump to search
Line 5: Line 5:
  
 
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"))
  
  

Revision as of 00:59, 31 March 2012

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

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


See also