← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #148128]: how to copy

 

Question #148128 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/148128

    Status: Open => Answered

RaiMan proposed the following answer:
no need to click, just move the mouse to an adequate position before the
text.

an example with this page:

gets the second word "Code" from the top menu

m = find(<image-of-sikuli-logo-top-left-corner>)
start = m.getCenter().below(17).right(116) # should be adjusted accordingly
hover(start)
mouseDown(Button.LEFT)
keyDown(Key.SHIFT)
wait(0.5)
mouseMove(start.right(45))
mouseUp()
keyUp()
type("c", KEY_CTRL)
print Env.getClipboard()

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.