Lua:getForegroundProcess

From Cheat Engine
Jump to navigation Jump to search
<> Function

function getForegroundProcess()

Returns the processid of the program that is currently on the front

Function Parameters

<none>

See also

Lua
Script Engine

Related Functions

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