Re: Accessing clipboard through software built on Python

2018-10-28 Thread Thomas Jollans
On 27/10/2018 20:50, Musatov wrote: > On Saturday, October 27, 2018 at 11:12:35 AM UTC-5, Marko Rauhamaa wrote: >> Michael Torrie : >>> As far as I know it's not possible for an application to directly yank >>> highlighted text from another application. >> >> That's an age-old pattern in X11. I don

Re: Accessing clipboard through software built on Python

2018-10-28 Thread Peter via Python-list
On 28/10/2018 12:17 AM, Musatov wrote: I am wondering if Python could be used to write a program that allows: 1. Highlight some text 2. Ctl+HOTKEY1 stores the string of text somewhere as COPIEDTEXT1 3. Highlight another string of text 4. Ctl+HOTKEY1 stores another string of text somewhere as C

Re: Accessing clipboard through software built on Python

2018-10-28 Thread Tim Daneliuk
On 10/28/2018 02:08 PM, Akkana Peck wrote: > Tim Daneliuk writes: >> However, the highlighted text must be copied explicitly: >> >> Highlight >> Ctl-C > [ ... ] >> X actually has several clipboard buffers and it can be tricky to get this >> going. I don't recall, >> but either clipboard or pyperc

Re: Accessing clipboard through software built on Python

2018-10-28 Thread Tim Daneliuk
On 10/28/2018 02:08 PM, Akkana Peck wrote: > Tim Daneliuk writes: >> However, the highlighted text must be copied explicitly: >> >> Highlight >> Ctl-C > [ ... ] >> X actually has several clipboard buffers and it can be tricky to get this >> going. I don't recall, >> but either clipboard or pyperc

Re: Accessing clipboard through software built on Python

2018-10-28 Thread Akkana Peck
Tim Daneliuk writes: > However, the highlighted text must be copied explicitly: > > Highlight > Ctl-C [ ... ] > X actually has several clipboard buffers and it can be tricky to get this > going. I don't recall, > but either clipboard or pyperclip have a way to get to them all IIRC ... To get th

Re: Accessing clipboard through software built on Python

2018-10-28 Thread Brian Oney via Python-list
You don't have to start from scratch. You don't to do anything other than learn to use anamnesis. I use anamnesis as my clipboard manager. I you can easily tell to get which ever one you want (i.e. the thousandth item). # Inform yourself https://sourceforge.net/projects/anamnesis/ # Install it

Re: Accessing clipboard through software built on Python

2018-10-28 Thread Tim Daneliuk
On 10/27/2018 08:17 AM, Musatov wrote: > I am wondering if Python could be used to write a program that allows: > > 1. Highlight some text > 2. Ctl+HOTKEY1 stores the string of text somewhere as COPIEDTEXT1 > 3. Highlight another string of text > 4. Ctl+HOTKEY1 stores another string of text somewh

Re: Accessing clipboard through software built on Python

2018-10-27 Thread Musatov
Yes, same site every time. -- https://mail.python.org/mailman/listinfo/python-list

Re: Accessing clipboard through software built on Python

2018-10-27 Thread Gregory Ewing
Musatov wrote: From a webpage. Does it always come from the same web site? If so, you may be able to scrape the web page to get the username and address, and then have hot keys for pasting them. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Accessing clipboard through software built on Python

2018-10-27 Thread Marko Rauhamaa
Musatov : > I work from a web database of users and I continually have to copy email > address and user ID to two separate fields on a Salesforce.com page. > > I go to the webpage, highlight email address then copy. > Then go to Salesforce page, and paste. > Then go back to the webpage, then copy

Re: Accessing clipboard through software built on Python

2018-10-27 Thread Musatov
On Saturday, October 27, 2018 at 11:40:57 AM UTC-5, Bob Gailer wrote: > On Oct 27, 2018 9:20 AM, "Musatov" wrote: > > > > I am wondering if Python could be used to write a program that allows: > > > > 1. Highlight some text > > 2. Ctl+HOTKEY1 stores the string of text somewhere as COPIEDTEXT1 > >

Re: Accessing clipboard through software built on Python

2018-10-27 Thread Musatov
On Saturday, October 27, 2018 at 11:12:35 AM UTC-5, Marko Rauhamaa wrote: > Michael Torrie : > > As far as I know it's not possible for an application to directly yank > > highlighted text from another application. > > That's an age-old pattern in X11. I don't know if Wayland supports it. > > App

Re: Accessing clipboard through software built on Python

2018-10-27 Thread Musatov
On Saturday, October 27, 2018 at 10:28:00 AM UTC-5, Michael Torrie wrote: > Couple of questions: > On 10/27/2018 07:17 AM, Musatov wrote: > > I am wondering if Python could be used to write a program that allows: > > > > 1. Highlight some text > > 2. Ctl+HOTKEY1 stores the string of text somewhere

Re: Accessing clipboard through software built on Python

2018-10-27 Thread Bob Gailer
On Oct 27, 2018 9:20 AM, "Musatov" wrote: > > I am wondering if Python could be used to write a program that allows: > > 1. Highlight some text > 2. Ctl+HOTKEY1 stores the string of text somewhere as COPIEDTEXT1 > 3. Highlight another string of text > 4. Ctl+HOTKEY1 stores another string of text s

Re: Accessing clipboard through software built on Python

2018-10-27 Thread Marko Rauhamaa
Michael Torrie : > As far as I know it's not possible for an application to directly yank > highlighted text from another application. That's an age-old pattern in X11. I don't know if Wayland supports it. Application 1 holds a selection (usually highlighted) and Application 2 wants to copy the s

Re: Accessing clipboard through software built on Python

2018-10-27 Thread Michael Torrie
Couple of questions: On 10/27/2018 07:17 AM, Musatov wrote: > I am wondering if Python could be used to write a program that allows: > > 1. Highlight some text > 2. Ctl+HOTKEY1 stores the string of text somewhere as COPIEDTEXT1 This text comes from where? Another application? > 3. Highlight ano

Accessing clipboard through software built on Python

2018-10-27 Thread Musatov
I am wondering if Python could be used to write a program that allows: 1. Highlight some text 2. Ctl+HOTKEY1 stores the string of text somewhere as COPIEDTEXT1 3. Highlight another string of text 4. Ctl+HOTKEY1 stores another string of text somewhere as COPIEDTEXT2 THEN 5. Ctl+HOTKEY2 pastes COP