Difference between revisions of "Lua:onOpenProcess"

From Cheat Engine
Jump to navigation Jump to search
(Replaced content with '<span style="font-size:25px;color:red">Sorry! Content not available.</span>')
Line 1: Line 1:
−
[[Category:Lua]]
+
<span style="font-size:25px;color:red">Sorry! Content not available.</span>
−
'''event''' onOpenProcess(''processId'')
 
−
 
 
−
If this function is defined it will be called whenever cheat engine opens a process.
 
−
:Note: The same process might be opened multiple times in a row internally
 
−
:Note: This function is called before attachment is fully done. You can call reinitializeSymbolhandler() to force the open to complete, but it will slow down process opens. Alternatively, you could launch a timer which will run when the opening has finished
 
−
 
 
−
===Function Parameters===
 
−
{|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0"
 
−
!align="left"|Parameter
 
−
!align="left"|Type
 
−
!style="width: 80%;background-color:white;" align="left"|Description
 
−
|-
 
−
|processId
 
−
|number
 
−
|The ID of the process that was opened
 
−
|}
 
−
 
 
−
== Examples ==
 
−
<pre>
 
−
function onOpenProcess(processId)
 
−
    print(string.format('Process opened: %d', processId))
 
−
end
 
−
</pre>
 
−
 
 
−
{{LuaSeeAlso}}
 
−
 
 
−
=== Related Functions ===
 
−
* [[Lua:openProcess|openProcess]]
 
−
* [[Lua:getProcesslist|getProcesslist]]
 
−
* [[Lua:getOpenedProcessID|getOpenedProcessID]]
 
−
* [[Lua:getProcessIDFromProcessName|getProcessIDFromProcessName]]
 
−
* [[Lua:createProcess|createProcess]]
 
−
* [[Lua:openFileAsProcess|openFileAsProcess]]
 

Revision as of 15:58, 16 March 2019

Sorry! Content not available.