def getText(): """获取剪贴板文本""" w.OpenClipboard() d = w.GetClipboardData(win32con.CF_ENHMETAFILE) w.CloseClipboard() return d def setText(aString): """设置剪贴板文本""" w.OpenClipboard() w.EmptyClipboard() w.SetClipboardData(win32con.CF_TIFF,aString) w.CloseClipboard()
python操作剪切板
最新推荐文章于 2024-07-21 08:53:54 发布