d0n Posted November 29, 2009 Share Posted November 29, 2009 When i use _IE to go to a website to get the source of the site, that site starts to download something automatically, and stops my script from getting the source. Is there a function in _IE to bypass this? Link to comment Share on other sites More sharing options...
GEOSoft Posted November 29, 2009 Share Posted November 29, 2009 It could be several things. Link to the page? 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...
d0n Posted November 29, 2009 Author Share Posted November 29, 2009 My linkIt is something like this, when you load the page, it will try to download, and IE will pop up saying its blocking the download for safety reasons and pauses the script Link to comment Share on other sites More sharing options...
GEOSoft Posted November 29, 2009 Share Posted November 29, 2009 The best way around that is probably to use InetGet(). Read the page to get the file location and then InetGet() to download it. If you are using the Beta, you can use InetRead() with BinaryToStr() to get the page source 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...
d0n Posted November 29, 2009 Author Share Posted November 29, 2009 but because the script would pause at trying to finish loading the page, it will get stuck before i can use inetget() Link to comment Share on other sites More sharing options...
Valuater Posted November 29, 2009 Share Posted November 29, 2009 but because the script would pause at trying to finish loading the page, it will get stuck before i can use inetget()You have not done any homework on INetGet()See help first.8) Link to comment Share on other sites More sharing options...
d0n Posted November 29, 2009 Author Share Posted November 29, 2009 but the script is already stuck on _IENavigate, and wont start Inetget(), not sure what you mean? Link to comment Share on other sites More sharing options...
Valuater Posted November 29, 2009 Share Posted November 29, 2009 (edited) IE.au3 is not even needed. You do not need to "navigate" at all.. SEE HELP 8) BTW... Be sure to check the examples at the bottom of the help pages Edited November 29, 2009 by Valuater Link to comment Share on other sites More sharing options...
d0n Posted November 29, 2009 Author Share Posted November 29, 2009 i need to navigate to the site to get the source to get the link for Inetget() to work since the link changes all the time also because that link is only available after you click it, i am not sure how Inetget() would do the job? Link to comment Share on other sites More sharing options...
dantay9 Posted November 29, 2009 Share Posted November 29, 2009 InetGet doesn't need a link to be visible. As long as the link exists, it can download something. Link to comment Share on other sites More sharing options...
GEOSoft Posted November 29, 2009 Share Posted November 29, 2009 If you are using the beta version then yoou can get the source with InetRead(). If not then you can get the source with _InetGetSource(). #Include<inet.au3> 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...
d0n Posted November 29, 2009 Author Share Posted November 29, 2009 InetGet doesn't need a link to be visible. As long as the link exists, it can download something.I know that, but i have to click the download link on the first page in order to see the actual download link for Inetget()Still the problem i am having is that the site will try to automatically download thus stopping my script, i was wondering if there is a way to bypass the automatic download with some _IE functions Link to comment Share on other sites More sharing options...
GEOSoft Posted November 29, 2009 Share Posted November 29, 2009 There is no way to use the _IE* functions to disable IEs security. 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...
d0n Posted November 29, 2009 Author Share Posted November 29, 2009 (edited) IE.au3 is not even needed. You do not need to "navigate" at all.. SEE HELP8)BTW... Be sure to check the examples at the bottom of the help pagesi think i get what you mean, using Inetget() to get the source, thanks for helpingEDIT:now i have another question, what is the best way to deal with these temp files? Edited November 29, 2009 by d0n Link to comment Share on other sites More sharing options...
Valuater Posted November 29, 2009 Share Posted November 29, 2009 Glad you got it... 8) Inetget( to temp file )... $read = Read file.... FileDelete( temp file) then just use the read. The temp file can be deleted right away 8) Link to comment Share on other sites More sharing options...
GEOSoft Posted November 29, 2009 Share Posted November 29, 2009 (edited) You can just use InetGet to download the file itself. $sStr = "ftp://dl2.foss-id.web.id/iso/ubuntu/releases/jaunty/ubuntu-9.04-desktop-i386.iso" $sFile = StringRegExpReplace($sStr, ".+/(.+)$", "$1") InetGet($sStr, @DeskTopDir & "\" & $sFile, 9) Edited November 29, 2009 by GEOSoft 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...
d0n Posted November 30, 2009 Author Share Posted November 30, 2009 didn't want to start a new topic but is it possible to hide these temp files ? Link to comment Share on other sites More sharing options...
Valuater Posted November 30, 2009 Share Posted November 30, 2009 didn't want to start a new topic but is it possible to hide these temp files ?change @DeskTopDirto @TempDir8) 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