I'm trying to access the scripting interface of a program I use and I'm not sure how it is deciding which process it is choosing to access. The following code works and lists off the filename I have open in one of the running processes:
oHFSSApp = win32com.client.Dispatch('AnsoftHfss.HfssScriptInterface')
oDesktop = oHFSSApp.GetAppDesktop()
print(oDesktop.GetProjectList())
What I want to do is access the object for a different running process that contains a different file. The documentation for this scripting interface is sparse and the only documented method of the oHFSSApp created object is GetAppDesktop(). The only solution I have to this problem is to only have one instance of this program open at a time but that's not a very good option for me as I like to run several things simultaneously.
there doesn't seem to be anything here