How do I find my running compiled script's process ID with the consideration that there may be more than one instance of the script running (i.e. I can't just look it up by name using tListProc)?
The following will get the PID of the process that is executing your script:
ThisPid = DllCall("kernel32.dll", long:"GetCurrentProcessId")
That is exactly what I needed. Thank you very much.