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

Hi,

Am using  SikulixIDE 1.1.1 in  CentOS Linux release 7.3.1611 (Core)

I am trying to get the PID of the window "cids". The below code is working 
perfectly in Windows.  Returning process id if it is running or -1 if it is not 
running.

sim=App.focus("cids")
id=sim.getPID()
print id

But while running the same script in CentOS, Returning process id if it is 
running, showing below error if it is not running:

[error] App.focus failed: [-1:cids ()] cids
[error] script [ getID ] stopped with error in line 4
[error] AttributeError ( 'NoneType' object has no attribute 'getPID' )

[error] switchApp: could not identify process with search name 'cids'

Help me to resolve the issue.

Thanks in advance !

Reagrds,
Rathinavel

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to