en:autorun:documentation:runthread
RunThread
Runs a user defined function in a new thread.
RunThread <funcname> [<param1> [.. <paramN>] RunThread(<funcname> [, <param1> [, .. <paramN>]]
Parameters
funcname | User defined function name. |
param1 paramN | Optional. Parameters passed to the function. |
Remarks
The thread terminates when the function is completely executed or when using Return.
Examples
LoadLibrary "Plugins\Autorun_Runtime.dll" RunThread ThreadFunc "Count:" Func ThreadFunc(v) WinSetText(v) For i = 1 to 10 Sleep(300) WinSetText(WinGetText() & " " & i) Next EndFunc # Numbers will be sequentially added to the title, as a result, the title will take the form: # Count: 1 2 3 4 5 6 7 8 9 10 # During the countdown, normal work with the TC is possible.
en/autorun/documentation/runthread.txt · Последнее изменение: 2022/09/26 23:03 — loopback