Jump to content

Recommended Posts

Posted

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?

Posted

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!"

Posted

My link

It 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

Posted

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!"

Posted

but because the script would pause at trying to finish loading the page, it will get stuck before i can use inetget()

Posted (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 by Valuater

NEWHeader1.png

Posted

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?

Posted

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!"

Posted

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

Posted

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!"

Posted (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

i think i get what you mean, using Inetget() to get the source, thanks for helping

EDIT:now i have another question, what is the best way to deal with these temp files?

Edited by d0n
Posted (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 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!"

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
×
×
  • Create New...