Difference between revisions of "Auto Assembler:createThreadAndWait"

From Cheat Engine
Jump to navigation Jump to search
(Created page with "Category:Assembler '''Auto Assembler''' createThreadAndWait(''Address'', ''Timeout''OPTIONAL(7.1+) ) Will spawn a thread in the process at the specified address and wait...")
 
 
(2 intermediate revisions by the same user not shown)
Line 41: Line 41:
 
* [[Auto Assembler:aobScanModule|aobScanModule]]
 
* [[Auto Assembler:aobScanModule|aobScanModule]]
 
* [[Auto Assembler:alloc|alloc]]
 
* [[Auto Assembler:alloc|alloc]]
* [[Auto Assembler:createthreadandwait|createThreadAndWait]]
+
* [[Auto Assembler:createThread|createThread]]
 
* [[Auto Assembler:dealloc|dealloc]]
 
* [[Auto Assembler:dealloc|dealloc]]
 
* [[Auto Assembler:define|define]]
 
* [[Auto Assembler:define|define]]

Latest revision as of 04:06, 9 January 2020

Auto Assembler createThreadAndWait(Address, TimeoutOPTIONAL(7.1+) )

Will spawn a thread in the process at the specified address and wait till it returns.

Timeout lets you specify the time to wait in milliseconds before giving an error, which is handy if the AA script runs in the main thread

If the timeout is missing, 0 smaller, it will wait forever

Note: In the case of CE 7.0 or earlier there was no timeout parameter, and the timeout is always set to 5000 (5 seconds)
When you load a table made with CE 7.0 or earlier the behavior of AA scripts without a timeout parameter reverts back to 5000 instead of 0



Command Parameters[edit]

Parameter Type Description
Address string The symbol or address to create the thread at


Examples[edit]

createThreadAndWait(SomeSymbol)
createThreadAndWait(00123ABC,0)


See also[edit]

Related Commands[edit]