[1.0.1] Env.getClipboard() seems to work only once and does not access real clipboard anymore after using paste()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juno |
New
|
Undecided
|
Unassigned | ||
SikuliX |
Fix Released
|
Medium
|
RaiMan |
Bug Description
--1. I use Interactive Sikuli Jython Session to do all this, if I relaunch it and check Env.getClipboard it has the new content. So it seems like Env.getClipboard only gets updated at the start.
--2. After using paste() the first time, Env.getClipboard() only returns the last pasted content, no matter what the "real" clipboard may contain.
-------
I'm trying to get a few lines of text into variables in a for loop using Env.getClipboard() but it only works on the first loop.
On the second loopiteration Env.getClipboard seems to always return the last value of the first one.
I've checked the clipboard and the values are being correctly copied.
Any ideia what might be causing this? runing v. X-1.0rc2 Mac OS 10.6.7
Thanks in advance.
summary: |
- using paste(): Env.getClipboard() does not access real clipboard anymore + X-1.0rc2: using paste(): Env.getClipboard() does not access real + clipboard anymore |
description: | updated |
summary: |
- X-1.0rc2: using paste(): Env.getClipboard() does not access real - clipboard anymore + X-1.0rc3: Env.getClipboard() seems to work only once and does not access + real clipboard anymore after using paste() |
description: | updated |
Changed in sikuli: | |
status: | New → In Progress |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → x1.0 |
tags: | added: fkt-paste |
Changed in sikuli: | |
importance: | Undecided → High |
Changed in sikuli: | |
milestone: | x1.0 → x1.1 |
summary: |
- X-1.0rc3: Env.getClipboard() seems to work only once and does not access + [1.0] Env.getClipboard() seems to work only once and does not access real clipboard anymore after using paste() |
summary: |
- [1.0] Env.getClipboard() seems to work only once and does not access + [1.0.1] Env.getClipboard() seems to work only once and does not access real clipboard anymore after using paste() |
tags: | added: testit |
Changed in sikuli: | |
importance: | High → Medium |
milestone: | 1.1.0 → 2.0.0 |
Changed in sikuli: | |
status: | In Progress → Fix Released |
milestone: | 2.0.0 → none |
I was running into similar problems yesterday on OSX. I was not doing any pasting.
What I was noticing when this was happening was not that Env.getClipboard() was failing to update to the new contents of the clipboard, but in fact somehow Sikuli was keeping the clipboard from working. When it got into this mode copy and pasting from one app to another was not working until I exited the IDE. I could select text in an app, hit CMD-C, and try to paste into another app and it would paste the clipboard before I hit copy.
But, unfortunately I can not reproduce this behavior today.