Re: [python-win32] Clipboard Documentation

2021-12-01 Thread gw1500 via python-win32
Hi Dietmar, Thanks. I lot to it but I'll give it a try. On 12/1/2021 11:33 AM, Dietmar Schwertberger wrote: I've been using the code below for 20 years now for text copy & paste. No guarantees, though. Regards, Dietmar def copy_to_clipboard(text, window_handle=0):    

Re: [python-win32] Clipboard Documentation

2021-12-01 Thread gw1500 via python-win32
On 12/1/2021 3:07 AM, Tim Roberts wrote: On 11/30/21 7:04 AM, gw1500 via python-win32 wrote: Thanks for the reply. I read about that but was hoping to use pywin32. I can see now the folly of that decision. I have a working minimal test but am looking for something a bit more automated. I

Re: [python-win32] Clipboard Documentation

2021-12-01 Thread Dietmar Schwertberger
I've been using the code below for 20 years now for text copy & paste. No guarantees, though. Regards, Dietmar def copy_to_clipboard(text, window_handle=0):     """copy_to_clipboard(window_handle, text):     copy a string to the clipboard."""     win32clipboard.OpenClipboard(window_handle)  

Re: [python-win32] Clipboard Documentation

2021-12-01 Thread Tim Roberts
On 11/30/21 7:04 AM, gw1500 via python-win32 wrote: Thanks for the reply. I read about that but was hoping to use pywin32. I can see now the folly of that decision. I have a working minimal test but am looking for something a bit more automated. I bring my app window to the top using

Re: [python-win32] Clipboard Documentation

2021-11-30 Thread gw1500 via python-win32
Hi Tim, Thanks for the reply. I read about that but was hoping to use pywin32. I can see now the folly of that decision. I have a working minimal test but am looking for something a bit more automated. I bring my app window to the top using pywin32 and a line I need is already highlighted.

Re: [python-win32] Clipboard Documentation

2021-11-29 Thread Tim Roberts
Dennis Putnam wrote: I'm using pywin32 and it is my understanding it can also be used for copying text from an app to the clipboard. I have been able to find scant documentation for that. Can someone send me a link to some definitive documentation? TIA. The easy way is to use the

[python-win32] Clipboard Documentation

2021-11-29 Thread Dennis Putnam
I'm using pywin32 and it is my understanding it can also be used for copying text from an app to the clipboard. I have been able to find scant documentation for that. Can someone send me a link to some definitive documentation? TIA. OpenPGP_signature Description: OpenPGP digital signature