Regency Posted February 3, 2011 Share Posted February 3, 2011 The script is basic, But its not pulling the picture (only one on page) and saving it. Anyone got any help? Global $sWebPage = "http://tmn2010.net/tmncontrols/ver_img.aspx?m=m&b=3"; webpage with images Global $sWebPage2 = "http://tmn2010.net/tmncontrols/ver_img.aspx?m=m&b=12"; webpage with images $sImgDir = "c:\Captcha\"; Please make certain this folder already exists (silent failure if not) $oIE = _IECreate( $sWebPage) _IELoadWait($oIE) _IENavigate($oIE,$sWebPage2,1) _IELoadWait($oIE) $oIMGs = _IEImgGetCollection ($oIE) ; Loop through all IMG tags and save file to local directory using INetGet For $oIMG in $oIMGs $sImgUrl = $oIMG.src $sImgFileName = $oIMG.nameProp INetGet($sImgUrl, $sImgDir & $sImgFileName) Next Anyone can use the page's above, if someone can point me in the right direction as to why it isnt working, i would appreciate it Link to comment Share on other sites More sharing options...
iamtheky Posted February 3, 2011 Share Posted February 3, 2011 dont see any images on either of those pages #include <INet.au3> Global $sWebPage = "http://tmn2010.net/tmncontrols/ver_img.aspx?m=m&b=3"; webpage with images Global $sWebPage2 = "http://tmn2010.net/tmncontrols/ver_img.aspx?m=m&b=12"; webpage with images $Src = _INetGetSource ($sWebPage) $Src2 = _INetGetSource ($sWebPage2) msgbox (0, '' , $Src) msgbox (0, '' , $Src2) ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
GEOSoft Posted February 3, 2011 Share Posted February 3, 2011 There are no images displaying with those links.Now let's get down to the nitty gritty.A quick check of the forums will show that we don't help people beat a captcha Ref:$sImgDir = "c:\Captcha\"Secondly THIS is all about game automation regardless of the game. Now so far I don't see where you have attempted automation except for the captcha but experience says this is going in that direction. It would appear that you want to get the captcha and read it with your script; so you are cheating before you even get into playing TFN. Yes, we are smart enough to look up http://tmn2010.net George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" 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