sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #54644
Re: [Question #689383]: version 2.0.3 type("c", Key.CTRL) not in Env.getClipboard()
Question #689383 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/689383
Status: Open => Answered
RaiMan proposed the following answer:
Cannot reproduce your problem (using 2.0.4 on Win10).
This works (a webpage in Edge showing your question):
for n in range(2):
click()
wait(1)
r = Region(349,486,65,19)
r.highlight(1)
r.doubleClick()
wait(1)
type("c", Key.CTRL)
wait(1)
print App.getClipboard()
click()
wait(1)
r = Region(35,488,63,17)
r.highlight(2)
r.doubleClick()
wait(1)
type("c", Key.CTRL)
wait(1)
print App.getClipboard()
and prints absolutely correct:
[log] CLICK on L[960,600]@S(0) (525 msec)
[log] highlight R[349,486 65x19]@S(0) for 1.0 secs
[log] DOUBLE CLICK on L[381,495]@S(0) (554 msec)
[log] ( Strg ) TYPE "c"
highlighted
[log] CLICK on L[960,600]@S(0) (537 msec)
[log] highlight R[35,488 63x17]@S(0) for 2.0 secs
[log] DOUBLE CLICK on L[66,496]@S(0) (551 msec)
[log] ( Strg ) TYPE "c"
value
[log] CLICK on L[960,600]@S(0) (538 msec)
[log] highlight R[349,486 65x19]@S(0) for 1.0 secs
[log] DOUBLE CLICK on L[381,495]@S(0) (554 msec)
[log] ( Strg ) TYPE "c"
highlighted
[log] CLICK on L[960,600]@S(0) (524 msec)
[log] highlight R[35,488 63x17]@S(0) for 2.0 secs
[log] DOUBLE CLICK on L[66,496]@S(0) (552 msec)
[log] ( Strg ) TYPE "c"
value
BTW: I have no idea, what CTRL+click should do?
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.