Jump to content

Recommended Posts

Posted

Hello,

if my clipboard is already filled with imagedata, is it

possible to save it to a file just with autoit?

thanks, andy

Posted

thank you, found this solution:

_ClipBoard_Open(0)
        $hBitmap = _ClipBoard_GetDataEx($CF_BITMAP)
        _GDIPlus_Startup()
        $hImage = _GDIPlus_BitmapCreateFromHBITMAP($hBitmap)
        _GDIPlus_ImageSaveToFile($hImage, fullpath/filename.jpg)
        _GDIPlus_BitmapDispose($hImage)
        _GDIPlus_Shutdown()
        _ClipBoard_Close()

works like i want :blink:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...