How do you get the Process ID from App.open()

Asked by Josh

When using the method

result = App.open( binary )

documentation states "Returns: an App object, that can be used with the instance methods."

--

App class does not expose any method for getting the Process ID for the executable that was launched. It is possible to get the PID as a string by

print result # Calc.exe(2480)

However to get it, I need to use a regex match to parse the string. Any know of a better method?

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Sorry, currently the only possibility, to get the PID of an App instance.

The App class should have a getPID() method. I put it on the agenda.

Can you help with this problem?

Provide an answer of your own, or ask Josh for more information if necessary.

To post a message you must log in.