← Back to team overview

sikuli-driver team mailing list archive

[Question #179912]: How do you get the Process ID from App.open()

 

New question #179912 on Sikuli:
https://answers.launchpad.net/sikuli/+question/179912

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.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.