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):
"""copy_to_clipboard
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 b
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)
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 pywin3