Re: [Sikuli-driver] [Question #262429]: help with storing highlighted text in linux as variable
Question #262429 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/262429 Status: Needs information = Open geech gave more information on the question: Sorry, the version is 1.1.0 and it would have been installed using source from a nightly build dated 08JAN2015. Eugene, to clarify my issue isn't using the middle click to paste. What I'm hoping to do is assign the text highlighted to a variable, not middle clicking to drop the text elsewhere on the screen. I believe it's a linux X server feature that provides the copy / paste functionality by allowing the middle click to paste highlighted text somewhere, but I don't know how to retrieve that data for use in my variable. I'm working on a RHEL6 machine if that matters at all. Thanks -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ 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
[Sikuli-driver] [Question #262429]: help with storing highlighted text in linux as variable
New question #262429 on Sikuli: https://answers.launchpad.net/sikuli/+question/262429 I'm selecting the text in a region by double clicking on the are which highlights my static form. What I'm looking to is store the highlighted text to a variable but I'm struggling due to being on a Linux platform I believe. I've observed that while highlighting text manually and using the middle mouse button to paste it works just fine, but I also observed that highlighting text and trying to do a paste function into text editor does not work which makes me suspicious that the highlight is not actually copying text to the clipboard. In other words, I'm beginning to realize that highlight - middle click does not store information the same way copy / paste traditionally works. Basically I'm finding out that the following doesn't result in my text being stored in my variable. doubleClick(reg2) #highlights the text I'm after type(c + Key.CTRL) x=Env.getClipboard() Is there a way to store what a middle click to paste has in memory to my variable? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ 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