Jump to content

IE.au3 questions


 Share

Recommended Posts

Two short questions, Can you bypass the security check, the one

that blocks a site from downloading file into your comp, "Internet explorer blocked this site from downloading file to your comp".

Second, could I run this code in silence, without opening Internet explorer?

Thanks you!

/Walle

#include <IE.au3>

$url = "http://www.swedvdr.org/browse.php"
$oIE = _IECreate($url, 0)
$oForm = _IEFormGetCollection($oIE, 0)
$oSearchInput = _IEGetObjByName($oIE, 'Search')
_IEFormElementSetValue($oSearchInput , 'Autoit')
_IEFormSubmit($oForm)
_IEImgClick ($oIE, "DL.gif", "src")
Link to comment
Share on other sites

To stop the information bar from blocking file and software downloads

1. Open Internet Explorer by clicking the Start button , and then clicking Internet Explorer.

2. Click the Tools button, and then click Internet Options.

3. Click the Security tab, and then click Custom level.

4. Do one or both of the following:

To turn off the Information bar for ActiveX controls, scroll to the ActiveX controls and plug-ins section of the list, and then, under Automatic prompting for ActiveX controls, click Enable.

To turn off the Information bar for file downloads, scroll to the Downloads section of the list, and then, under Automatic prompting for file downloads, click Enable.

5. Click OK, click Yes to confirm that you want to make the change, and then click OK again.

To hide IE from view, use $oIE = _IECreate($url, 0, 0).
IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]
Link to comment
Share on other sites

Thanks!

The thing that trigger the security behavior is probably "_IEImgClick ($oIE, "DL.gif", "src")".

If I press the button manually, the security error won't show.

Can I work around this, changing a regkey or anything ells?

Link to comment
Share on other sites

Barring some elaborate Javascript on the page (like triggers on onmouseover for the image and related events) using _IEImgClick should not behave differently from a physical click. If you believe it is, please examing the page source and provide a reproducer.

Dale

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

Barring some elaborate Javascript on the page (like triggers on onmouseover for the image and related events) using _IEImgClick should not behave differently from a physical click. If you believe it is, please examing the page source and provide a reproducer.

Dale

When I'm then accepting the file for download, nothing happends...

Can I download the file someway ells than clicking on the download.gif?

td valign=top width=500><a href="details.php?id=14821&amp;hit=1"><font size=2 title='AUTOIT'><b><font color=ff0000>AUTOIT</font></b></font></a><br><font size=1><a href=browse.php?genre=a>Action</a> / <a href=browse.php?genre=h>Adventure</a> / <a href=browse.php?genre=b>Comedy</a></td><td><a href=download.php/14821/Autoit.torrent><img src=/pic/dl.gif border=0></a>
</td>
Link to comment
Share on other sites

Have you tried INetGet?

1. $Link = _IELinkClickByIndex ($oIE, 44) ; Security block

2. INetGet($Link) ; Doing something wrong

3. _IEImgClick ($oIE, "DL.gif", "src"); Security block

I'm out of ideas =/

Anyway, thx for the help

Link to comment
Share on other sites

$Link has to be a link to the source of the file, not the webpage where you click the link.

IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]
Link to comment
Share on other sites

On a quick glance, it looks like you should append "download.php/14821/Autoit.torrent" to the domain name.

IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...