states:
But, what commands start a new thread? I can find NO EXPLICIT list of these.The current thread is defined as the flow of execution invoked by the most recent event; examples include hotkeys, SetTimer subroutines, custom menu items, and GUI events. The current thread can be executing commands within its own subroutine or within other subroutines called by that subroutine
implies, by saying "examples include" as opposed to "examples are",examples include hotkeys, SetTimer subroutines, custom menu items, and GUI events.
that other things may start new threads.
I've never needed to explicitly start a new thread until today. (RUNWAIT command must be kicked off in a NEW thread if one wants to capture it's OutputVarPID.
It's doc includes, at OutputVarPID:
Having great difficulty figuring out how to realize a failing Runwait occurred (without, of course, having the warning dialog presented).RunWait also supports this parameter, though its OutputVarPID must be checked in another thread (otherwise, the PID will be invalid because the process will have terminated by the time the line following RunWait executes).