ImagePaste icon indicating copy to clipboard operation
ImagePaste copied to clipboard

Add win32 for Windows clipboard

Open thanhph111 opened this issue 3 years ago • 1 comments

thanhph111 avatar Oct 01 '22 04:10 thanhph111

Here are some documentation and resources I used while making clipette:

win32 clipboard functions win32 memory management functions CF_HDROP format ctypes wintypes reference ctypes docs bitmap image file structure

This is a very crude way of using the clipboard and python doesn't know what's going on when dealing with these win32 modules so error management might end up being a challenge. If any of the win32 functions spit any error, we must use GetLastError to access it but I haven't implemented that so far.

Also, if we use open_clilpboard() and not close it, it'll make the clipboard unusable for any other program. So we need to be more careful with that.

b-init avatar Oct 01 '22 08:10 b-init