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
def setter(self, paths):
files = ("\0".join(paths)).replace("/", "\\")
data = files.encode("U16")[2:] + b"\0\0"
win32clipboard.OpenClipboard()
win32clipboard.EmptyClipboard()
win32clipboard.SetClipboardData(win32clipboard.CF_HDROP, self.matedata + data)
win32clipboard.CloseClipboard()
this is my codes. i use some path to test. sometime it could work. sometime, the path had in Clipboard, but cant ctrl+v to copy.
def read_paths(self):
win32clipboard.OpenClipboard()
try:
return win32clipboard.GetClipboardData(win32clipboard.CF_HDROP)
finally:
win32clipboard.CloseClipboard()
this is read. i use this to debug.
i_path = r'D:\workflow\2403_pythonProject\18_XYsolution\cache\PrtSc111.png' this couldnt be copy
i_path = r'D:\workflow\2403_pythonProject\12_PrtSc\cache\img.png' this could.
its so confused
The text was updated successfully, but these errors were encountered:
this is read. i use this to debug.
i_path = r'D:\workflow\2403_pythonProject\18_XYsolution\cache\PrtSc111.png' this couldnt be copy
i_path = r'D:\workflow\2403_pythonProject\12_PrtSc\cache\img.png' this could.
its so confused
The text was updated successfully, but these errors were encountered: