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.
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
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
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
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
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
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
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
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
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.
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
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.
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
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
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
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
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
17 matches
Mail list logo