This can be done in both AHK v1 and v2, but requires external libraries.
Ideally, you would be able to specify a file name, Keysharp would read it, then copy the bitmap to the clipboard.
(Perhaps allow copying the bitmap to a variable also?)
This can be done in both AHK v1 and v2, but requires external libraries.
Ideally, you would be able to specify a file name, Keysharp would read it, then copy the bitmap to the clipboard.
(Perhaps allow copying the bitmap to a variable also?)
I’ve added a new function named CopyImageToClipboard().
It takes the same arguments as LoadPicture(). So you can load via filename, or image handle etc...
In my tests it works.
Tested, works.
Thanks for implementing this. Closing.
Potentially useful:
Or:
From: SO