You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In dtactions/unimacro/unimacroutils.py I have a function setClipboard:
def setClipboard(t, format=1):
"""set clipboard with text
format = win32con.CF_UNICODETEXT (13): as unicode
"""
#pylint:disable=W0622
try:
win32clipboard.OpenClipboard()
win32clipboard.EmptyClipboard()
win32clipboard.SetClipboardData(format, t)
except:
print(f'exception in unimacroutils/setClipboard of "{t}"')
finally:
win32clipboard.CloseClipboard()
which works most of the time, but raises an exception (which cannot be caught, but crashes Dragon) with for example the second number:
(this is done via a function in dtactions\unimacro\unimacroactions.py, line 1120).
def try_SCLIP():
''' try by running this script, ensure cursor is on a safe place (bottom, or here after a #
'''
do_SCLIP('hello')
print('try first number:')
do_SCLIP('9123454321')
# now comes the error:
print('try second number:')
do_SCLIP('123456789')
print('ready')
I am puzzled...
The text was updated successfully, but these errors were encountered:
* try to get win32 function running... (solved after win32_postinstall ran without errors, cleaning up a lot of pywin32 installs was needed, see dictation-toolbox/natlink#193)
* simplified extenvvars, getFolderFromLibraryName,
* try to specify setClipboard function spurious error, (issue #16)
In dtactions/unimacro/unimacroutils.py I have a function setClipboard:
which works most of the time, but raises an exception (which cannot be caught, but crashes Dragon) with for example the second number:
(this is done via a function in dtactions\unimacro\unimacroactions.py, line 1120).
I am puzzled...
The text was updated successfully, but these errors were encountered: