sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #16028
Re: [Question #221888]: Error when attempting to move a window
Question #221888 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/221888
Status: Open => Answered
RaiMan proposed the following answer:
if you want to drag a window somewhere else, you have to move the mouse
to some place in the title bar and then make the drag&drop.
To get this point, it is the best, to use some unique image inside the
window and use the targetOffset feature to click the titlebar.
example with this Sikuli question page opened in browser (excuse me, I
am on Mac ;-)i:
m = find(Pattern("sikuli-logo.png").targetOffset(117, -125)
# this gives me a spot on the titlebar suitable for dragging.
dragDrop(m, m.getTarget().right(1025))
The meaning and usage of the above Sikuli features:
http://doc.sikuli.org/index.html
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.