Sign in to follow this  
Followers 0
d0n

_IE question

18 posts in this topic

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?

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

but the script is already stuck on _IENavigate, and wont start Inetget(), not sure what you mean?

Share this post


Link to post
Share on other sites

#8 ·  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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

InetGet doesn't need a link to be visible. As long as the link exists, it can download something.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#14 ·  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

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#16 ·  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!"

Share this post


Link to post
Share on other sites

didn't want to start a new topic but is it possible to hide these temp files ?

Share this post


Link to post
Share on other sites

didn't want to start a new topic but is it possible to hide these temp files ?

change @DeskTopDir

to @TempDir

8)


NEWHeader1.png

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  
Followers 0