Difference between revisions of "Lua:process"
Jump to navigation
Jump to search
m (moved process to Lua:process) |
(→Related Functions) |
||
Line 46: | Line 46: | ||
=== Related Functions === | === Related Functions === | ||
− | * [[getProcesslist]] | + | * [[Lua:getProcesslist|getProcesslist]] |
− | * [[getOpenedProcessID]] | + | * [[Lua:getOpenedProcessID|getOpenedProcessID]] |
− | * [[getProcessIDFromProcessName]] | + | * [[Lua:getProcessIDFromProcessName|getProcessIDFromProcessName]] |
− | * [[openProcess]] | + | * [[Lua:openProcess|openProcess]] |
− | * [[getForegroundProcess]] | + | * [[Lua:getForegroundProcess|getForegroundProcess]] |
− | * [[getWindowProcessID]] | + | * [[Lua:getWindowProcessID|getWindowProcessID]] |
− | * [[createProcess]] | + | * [[Lua:createProcess|createProcess]] |
− | * [[debugProcess]] | + | * [[Lua:debugProcess|debugProcess]] |
− | * [[dbk_useKernelmodeOpenProcess]] | + | * [[Lua:dbk_useKernelmodeOpenProcess|dbk_useKernelmodeOpenProcess]] |
− | * [[dbk_useKernelmodeProcessMemoryAccess]] | + | * [[Lua:dbk_useKernelmodeProcessMemoryAccess|dbk_useKernelmodeProcessMemoryAccess]] |
− | * [[dbk_getPEProcess]] | + | * [[Lua:dbk_getPEProcess|dbk_getPEProcess]] |
Revision as of 00:30, 25 January 2018
global variable process
type (nil, string)
A variable that contains the main module name of the currently opened process
Examples
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 the attached process closes the "process" variable will still contain 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