my script's process id

Started by NateT, February 28, 2014, 08:15:48 AM

Previous topic - Next topic

NateT

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)?

ChuckC

The following will get the PID of the process that is executing your script:

ThisPid = DllCall("kernel32.dll", long:"GetCurrentProcessId")


NateT

That is exactly what I needed.  Thank you very much.