Jump to content
Sign in to follow this  
gruntydatsun

Save Image From Webpage Without Re-Requesting Image

Recommended Posts

gruntydatsun

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.

Share this post


Link to post
Share on other sites
EKY32

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]

Share this post


Link to post
Share on other sites
JohnOne

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.

Share this post


Link to post
Share on other sites
FireFox

then use InetGet to download the image.

He said that the image changes for every request ;)

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
EKY32

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]

Share this post


Link to post
Share on other sites
gruntydatsun

Sure a picture on the currently loaded instance of a webpage must exist on the hard drive or in ram somewhere. I don't need code, just some strategy on how to get at this file.

Any help appreciated. :huggles:

Share this post


Link to post
Share on other sites
DaleHohm

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

  • Like 1

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

Share this post


Link to post
Share on other sites
gruntydatsun

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.

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  

×