Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739
Mike posted a new comment: Hi Raiman - completely different: was like: Region(1125,501,156,93).asOffset, now a simple: Offset(156,93). I tried a few permutations and it worked spot on (Windows 10 Sikulix vanilla install - no other Python and no environment settings). For the record: 1) if no rectangle is selected then nothing is entered into the statement text (rather than eg Offset(0,0) 2) if you drag onto another screen the following is output: Exception in thread "AWT-EventQueue-0" java.awt.image.RasterFormatException: (x + width) is outside raster at sun.awt.image.IntegerInterleavedRaster.createWritableChild(Unknown Source) at java.awt.image.BufferedImage.getSubimage(Unknown Source) at org.sikuli.util.OverlayCapturePrompt.drawSelection(OverlayCapturePrompt.java:334) at org.sikuli.util.OverlayCapturePrompt.paint(OverlayCapturePrompt.java:384) at javax.swing.RepaintManager$4.run(Unknown Source) at javax.swing.RepaintManager$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.access$1200(Unknown Source) at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source) at j ava.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) [error] OverlayCapturePrompt: cropSelection: RasterFormatException Many thanks - I think this will be very useful. -- 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

