Jump to content

Save Image From Webpage Without Re-Requesting Image


Recommended Posts

OK.

I need to save a copy of an image from a webpage. I cannot re-request the image or inetget it as the image changes every time.

I need to get a copy of the image as it appears on this webpage, from this load.

I can manually right click the image with the mouse and save locally and that works.

Is there a way to get _IEImgClick to perform a right click so I can access the context menu? should I just ry to save the page out to a file and strip it out of there?

I thought this bit was going to be the easy part of the script but it's kicking my butt.

Any help greatly appreciated.

Thank you.

Link to comment
Share on other sites

if the image has a special name in the <img> code in the page you can get the link of it using _StringBetween or something else then use InetGet to download the image.

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Link to comment
Share on other sites

The OP cannot use InetGet, "as the image changes every time."

Imagine if it were an image like a capcha or something, it would change with each

attempt to download it. So I think it might be something similar.

(I'm not suggesting it is actually a capcha)

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

He said that the image changes for every request ;)

I know that, and I told him to get the link of the image from the HTML code in the page.

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Link to comment
Share on other sites

There have been many discussions of this sort of thing in the forum before and they always end up being someone trying to defeat a capcha. I believe that a capha is a valid, relatively unobtrusive security mechanism and do not wish to see anyone create an evasion for them because I worry that the next method devised to insure such security will be much more painful for everyone.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

If I was smart enough to make a neural network to defeat captcha, I wouldn't need help saving out a picture from a webpage. I can already do what I'm asking by saving a copy of the page locally then pull it out of there.

I was just looking for a tidier way of doing it. If there's no easier way then I'll just go with the long way that works already. :)

The next method beyond captcha is infinitely easier on users. It'll be simple visual symbol recognition or logic puzzles that don't pop your eyeballs or your eardrums like current craptastic captcha does.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...