sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32272
Re: [Question #266654]: Is it possible to assign 'type("v", KEY_CTRL)' value to a variable
Question #266654 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266654
Status: Open => Answered
RaiMan proposed the following answer:
after using
type("c", KEY_CTRL)
the selected text is on the clipboard and can be retrieved from there using
selection = App.getClipboard() # version 1.0.1+
or (deprecated with previous versions)
selection = Env.getClipboard()
after having modified the selection somehow, use
paste(selection)
to write it back to the currently selected GUI element.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.