andygo Posted July 15, 2010 Share Posted July 15, 2010 Hello, if my clipboard is already filled with imagedata, is it possible to save it to a file just with autoit? thanks, andy Link to comment Share on other sites More sharing options...
BitByteBit Posted July 15, 2010 Share Posted July 15, 2010 (edited) Here you go dude. http://tinyurl.com/2fmcbzz or http://tinyurl.com/33un3nd Google is your friend. Edited July 15, 2010 by BitByteBit Link to comment Share on other sites More sharing options...
andygo Posted July 15, 2010 Author Share Posted July 15, 2010 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now