Sign in to follow this  
Followers 0
andygo

Save Imagedata from Clipboard to File

3 posts in this topic

Hello,

if my clipboard is already filled with imagedata, is it

possible to save it to a file just with autoit?

thanks, andy

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Here you go dude. http://tinyurl.com/2fmcbzz or http://tinyurl.com/33un3nd

Google is your friend.

Edited by BitByteBit

Share this post


Link to post
Share on other sites

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:

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0