I'm trying to obtain the unique process ID for a run of an excel application that's running in the background via COM so that I can kill/control that specific instance of excel (WinKill and IfWinActive, etc. don't respond to it as it doesn't show as a window). The following enables the excel file to run in the background; please assist in obtaining its unique PID:
Code: Select all
Example_FilePath := A_Desktop "\Example.xlsx"
Example_File := ComObjGet(Example_FilePath)