← Back to team overview

sikuli-driver team mailing list archive

[Question #689383]: version 2.0.3 type("c", Key.CTRL) not in Env.getClipboard()

 

New question #689383 on Sikuli:
https://answers.launchpad.net/sikuli/+question/689383

Using Version 2.0.3
I am unable to get save a new value in the clipboard.
I've tried the following:
keyDown(Key.CTRL)
wait(1) # the waits were added in case that was an issue
doubleClick(Region(352,447,115,37))
wait(1)
keyUp()
wait(3)
type("c",Key.CTRL)
wait(3)
value = Env.getClipboard()
print value # returns last thing I copied and not what was highlighted on the screen when ctrl+c was sent

drag(Region(275,424,92,19).getTopLeft())
dropAt(Region(275,424,92,19).getBottomRight())
wait(0.25)
type("c",Key.CTRL)
wait(0.15)
value = Env.getClipboard()
print value # returns last thing I copied and not what was highlighted on the screen when ctrl+c was sent

I also can't get the mouse click + ctrl combo to work:
click(Region(275,424,92,19), 2) # 2 is KeyModifier.CTRL


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