Lua:process

From Cheat Engine
Revision as of 05:49, 8 March 2017 by TheyCallMeTim13 (talk | contribs) (Created page with '== process == ; process : A variable that contains the main module name of the currently opened process ----------------------------------------- When '''not attached''' t…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

process

process
A variable that contains the main module name of the currently opened process




When not attached to any process:

Code:

 print(type(process))
 print(process)
 print('Attached to ' .. (process or 'NOTHING'))
 if process then
   print('attached')
 else
   print('Not Attached')
 end

Output:

 nil 
  
 Attached to NOTHING 
 Not Attached

Note: If attached, and attached process closes the "process" variable will still have the last attached process' main module name.


With the same code as above and attached to the Cheat Engine Tutorial (64-Bit):

Output:

 string 
 Tutorial-x86_64.exe 
 Attached to Tutorial-x86_64.exe 
 attached 



Links

Variables

Functions