gruntydatsun Posted October 15, 2012 Share Posted October 15, 2012 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 More sharing options...
EKY32 Posted October 15, 2012 Share Posted October 15, 2012 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 More sharing options...
JohnOne Posted October 15, 2012 Share Posted October 15, 2012 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 eachattempt 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 More sharing options...
FireFox Posted October 15, 2012 Share Posted October 15, 2012 then use InetGet to download the image.He said that the image changes for every request Link to comment Share on other sites More sharing options...
EKY32 Posted October 15, 2012 Share Posted October 15, 2012 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 More sharing options...
JohnOne Posted October 15, 2012 Share Posted October 15, 2012 I know that, and I told him to get the link of the image from the HTML code in the page.And then went on to suggest InetGet be used. FireFox 1 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 More sharing options...
gruntydatsun Posted October 17, 2012 Author Share Posted October 17, 2012 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. Link to comment Share on other sites More sharing options...
JohnOne Posted October 17, 2012 Share Posted October 17, 2012 Yes, in your internet cache, good look finding it though, they usually just have random names and no extension. 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 More sharing options...
DaleHohm Posted October 17, 2012 Share Posted October 17, 2012 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 JohnOne 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 Link to comment Share on other sites More sharing options...
gruntydatsun Posted October 18, 2012 Author Share Posted October 18, 2012 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 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