sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29863
Re: [Question #259847]: Is there any escape sequence for double quotes for sikuli type command ?
Question #259847 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/259847
Status: Open => Answered
RaiMan proposed the following answer:
when using paste():
if a string contains double quotes, you either have to escape
"some string containing \" inside"
or use single quote for the string
'some string containing " inside'
(that is Python ;-)
if you want to "paste()" into a command line, you have to simulate the
key sequence.
This worked for me:
# the command line window is focused (accepts input)
paste("some text") # fills clipboard and writes a ^V to command line
type(Key.BACKSPACE) # get rid of the ^V
rightClick(App.focusedWindow()) # activate the command line's context menu
type("p") # select paste - text should now be inserted on command line
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.