Question #707899 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/707899
Status: Open => Answered abuzer stream proposed the following answer: If you are trying to read a text that you can select, after selecting it with doubleClick(), you can assign the datayo you copied with ctrl+c ->(type( Key.CTRL+'c')) to your variable with Env.getClipboard. Env.getClipboard() Get the content of the clipboard if it is text, otherwise an empty string. NOTE: Be careful, when using Env.getClipboard() together with paste(), since paste internally uses the clipboard to transfer text to other applications, the clipboard will contain what you just pasted. Therefore, if you need the content of the clipboard, you should call Env.getClipboard() before using paste(). Tipp: When the clipboard content was copied from a web page that mixes images and text, you should be aware, that there may be whitespace characters around and inside your text, that you might not have expected. In this text = Env.getClipboard() -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp