Question #679017 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679017
Status: Answered => Open matteoa is still having a problem: I reproduced the problem with this script(Notepad++ was closed before the launch): chrExe = r"c:\Program Files (x86)\Notepad++\notepad++.exe" app = App(chrExe) if not app.isRunning(): app.open(10) vncReg=Region(app.window()) print app, app.window() The error is on the line5 : vncReg=Region(app.window()) and the output is [error] script [ testapp2 ] stopped with error at line --unknown-- [error] Error caused by: Traceback (most recent call last): File "C:\Projects\DataPurchase\REACT\SikuliX\Test_h20\testapp2.sikuli\testapp2.py", line 5, in <module> vncReg=Region(app.window()) at org.sikuli.script.Region.<init>(Region.java:414) at org.python.proxies.sikuli.Region$Region$5.<init>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:211) java.lang.NullPointerException: java.lang.NullPointerException When Notepad++ is already opened the script works repeatedly. The original script I put on this question was working without problem from months, and using an older version of Sikulix still works every time. Is it possible that in the newer versions there is something different to do to grab the region of an application and use it as a ROI for all the subsequent operations? Thanks for your invaluable support Matteo -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp