← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #647999]: Env.getClipboard does not return anything

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
because of this
#Text = Env.getClipboard()

Text is not given a value, so it is something else.

Try this:
click("1499974350527.png")

type("a", KeyModifier.CTRL)
wait(1)
type("c", KeyModifier.CTRL)
wait(1)
myText = Env.getClipboard()
print myText

as a convention: variable names should start with a lowercase letter

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.