dictation-toolbox / dtactions

Common OS action and related code from dictation-toolbox projects
4 stars 1 forks source link

clipboard blocks at runtime error inside win32clipboard.SetClipboardData #11

Closed quintijn closed 8 months ago

quintijn commented 10 months ago

Now isolated:

the do_SCLIP function in unimacroactions.py fails if the string to paste is something like '123456677' (a string that is!).

A test function at the bottom of that file. In the fork dougransom/dtactions!! branch "sclip"

quintijn commented 8 months ago

Probably solved, by bringing all win32clipboard functions:

 try:
      win32clipboard.EmptyClipboard()
  finally:
      win32clipboard.CloseClipboard()

under try... finally...