Related example macro: Demo-ImageDownload
This command is similar to SAVEITEM, which is the default command for image downloading. However, unlike SAVEITEM, it does not access the image via the HTML of the website, but directly by simulating the Internet Explorer "Save Picture As" command. This can be an advantage on complex websites or websites where image are constructed "on the fly".
To use SAVEPICTUREAS, you need to manually edit a recorded macro, just as for SAVETARGETAS.
IIM records a TAG command:
TAG POS=1 TYPE=IMG ATTR=HREF:http://www.iopus.com/
This would simulate a mouse click on the link. This is NOT what we want, we need a command similar to the right-click command "Save Target As" in Internet Explorer: Simply add CONTENT=EVENT:SAVETARGETAS to the recorded normal TAG line. You will then have:
TAG POS=1 TYPE=IMG ATTR=HREF:http://www.iopus.com/ CONTENT=EVENT:SAVEPICTUREAS
The downloaded files are copied to the iMacros download directory. The naming convention for downloaded images is the same as for downloaded files. This also means you can use ONDOWNLOAD FOLDER=c:\abc FILE=test to specify your name for the downloaded image.
A similar command is SAVETARGETAS for downloading everything else except images.
Page URL http://www.iopus.com/imacros/help/save_picture_as.htm