Open michaeldengxyz opened 9 months ago
my codes:
import win32clipboard import win32con text = '18621312165' win32clipboard.OpenClipboard() win32clipboard.EmptyClipboard() win32clipboard.SetClipboardData(win32con.CF_UNICODETEXT, text) win32clipboard.CloseClipboard()
""" Platform: Windows-10-10.0.22621-SP0 python 3.10.9 pywin32 302/305/306
!!!! when text is number only, such as, ---- gets error: pywintypes.error: (6, 'SetClipboardData', 'handle is invalid!'), when text='201920' ---- or crashes without error message, when text='18621312165' !!!!
"""
same,win11 23H2 22361.3155 Python 3.11.5 it only happens when the value is full digit
my codes:
""" Platform: Windows-10-10.0.22621-SP0 python 3.10.9 pywin32 302/305/306
"""