http://www.autohotke...pic.php?t=86420
The usual way is a two-liner (AHK Documentation) :
Process, Exist PID := errorlevel ; MsgBox, %PID%
Here is a One-Liner
PID:=DllCall("GetCurrentProcessId") ; MsgBox, %PID%
I wish that this one-liner be mentioned in AHK Documentation - remarks paragraphs of Process command.
Regards,
