Why get and save from the clipboard? I feel this function does it much better in one go https://www.autoitscript.com/autoit3/docs/libfunctions/_ScreenCapture_SaveImage.htm and maybe translate this vba Excel  to AutoIt  http://www.ms-office-forum.net/forum/sitemap/index.php?t-335549.html