← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #272223]: Can you highlight text with CTRL+Shift+RIGHT ?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
I have no problems with that (Win 10-64, Java 8, SikuliX 1.1.0):


App.focus("Google Chrome")
wait(1)
type("l", KeyModifier.CTRL)
ZIP="60604" # data[22] 
stationURL = "view-source:http://www.wunderground.com/weather-forecast/zmw:"+ZIP+".1.99999"; 
paste(stationURL)
type(Key.ENTER)
wait(3)
type("f", KeyModifier.CTRL)
paste("METAR")
type(Key.ENTER)
type(Key.ESC)
type(Key.RIGHT, KeyModifier.CTRL+KeyModifier.SHIFT )
type(Key.RIGHT, KeyModifier.CTRL+KeyModifier.SHIFT )
type(Key.RIGHT, KeyModifier.CTRL+KeyModifier.SHIFT )
type("c", KeyModifier.CTRL)
print "Clipboard[%s]" % Env.getClipboard()

if it does not work for you, try some short wait()s between the type()s

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