检索调用线程的线程标识符
#Include <WinAPI.au3> _WinAPI_GetCurrentThreadId()
在MSDN中搜索
#include <WinAPI.au3> MsgBox(4096, "ID", "Get Current Thread: " & _WinAPI_GetCurrentThreadId())