sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47911
Re: [Question #671319]: Saving Clipboard in to a variable
Question #671319 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/671319
Status: Open => Answered
RaiMan proposed the following answer:
First of all I ask you to upgrade to the latest 1.1.3 nightly.
Either use Java 8 or Java 10.
I will not support releases prior to 1.1.3 any longer with respect to
system related or Java related problems.
type("c", KeyModifier.CMD)
someText = App.getClipboard()
works definitely.
The problem might be the
doubleClick(Pattern(someText).targetOffset(90,-70))
before.
You should test your workflow step by step and hence avoid such compound constructs like
doubleClick(Pattern(someText).targetOffset(90,-70)) and type("c", KeyModifier.CMD)
better:
doubleClick(Pattern(someText).targetOffset(90,-70))
type("c", KeyModifier.CMD)
and watch, whether really anything is selected by the doubleClick.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.