Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-26 Thread RaiMan
Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739 RaiMan posted a new comment: thanks for testing. please see related bug. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli.

Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-25 Thread Mike
Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739 Mike posted a new comment: If I start a region capture on Screen(0) and drag the mouse onto Screen(1) I get: Exception in thread "AWT-EventQueue-0" java.awt.image.RasterFormatException: (x + width) is

Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-25 Thread RaiMan
Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739 Linked to bug: #1817556 https://bugs.launchpad.net/bugs/1817556 "[1.1.4] IDE: Toolbar buttons: chrash if selection is drawn to another screen " -- You received this question notification

Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-25 Thread RaiMan
Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739 RaiMan posted a new comment: at 1: by intention (what other makes sense?) at 2: I cannot test multi monitor situations currently. But I will setup a bug. Could you please check, what happens, if you do

Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-25 Thread RaiMan
Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739 RaiMan posted a new comment: Yes, both observations already materialised in my mind, while being busy with other things than SikuliX ;-) Will check and repair asap. Thanks. -- You received this question

Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-25 Thread Mike
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

Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-25 Thread RaiMan
Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739 RaiMan posted a new comment: revised the implementation, so now the drawing direction is evaluated and shown with respective negative x and/or y. Please test. -- You received this question notification

Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-25 Thread RaiMan
Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739 RaiMan posted a new comment: In fact, at time of first implementation, it was just a convenience tool, to measure distances between points. Now that the result is visible as an Offset(x, y), I agree, that

Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-25 Thread Mike
Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739 Mike posted a new comment: It looks to me as though no matter how you draw the rectangle, it will always produce a top-left to bottom-right offset, so for offsets that are to the left, or above the starting

Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-23 Thread Mike
Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739 Mike posted a new comment: (Sorry - my response overlapped with yours ) -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli.

Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-23 Thread Mike
Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739 Status: Answered => Solved Mike confirmed that the question is solved: OK - I think I've got an idea of what this is. It actually produces a location that you can therefore feed in as an offset to a

Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-23 Thread masuo
Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739 masuo posted a new comment: @Mike I misunderstood. I'm sorry. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli.

Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-23 Thread RaiMan
Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739 RaiMan proposed the following answer: BTW: the feature is intended to help in defining regions in a GUI relative to others, if a script should work independently of absolute positions on a screen. You find

Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-23 Thread RaiMan
Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739 Status: Open => Answered RaiMan proposed the following answer: Region.asOffset() is a not-documented-sorry-for-that;-) function, that simply turns the Region into a Location(w, h), so it can be used as

Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-23 Thread Mike
Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739 Status: Answered => Open Mike is still having a problem: I can get this to work: r2 = Region(100,100,300,300).offset(500,500) However your code gave me: [error] Error caused by: Traceback (most

Re: [Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-23 Thread masuo
Question #678739 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678739 Status: Open => Answered masuo proposed the following answer: Try this codes. r1 = Region(100,100,300,300) r1.highlight(2) r2 = Region(100,100,300,300).asOffset(100,100) r2.highlight(2) You can use

[Sikuli-driver] [Question #678739]: IDE Offset Button

2019-02-22 Thread Mike
New question #678739 on Sikuli: https://answers.launchpad.net/sikuli/+question/678739 If I press the Offset button I get some code like: Region(1113,792,254,205).asOffset() Where is .asOffset documented? What is the Offset button for? -- You received this question notification because your