Jump to content
Sign in to follow this  
JohnMC

IE Get Source URL For Downloaded File

Recommended Posts

JohnMC

Im working on a script that when a .torrent file be clicked on in your web browser you would be prompted to 1. download/execute the file localy or 2. send the URL to a server so the server can handle it... but i dont see anyway of doing this, except to download the file localy then upload it to the server and thats alot more complicated then just sending the URL. any ideas?

also, taking a step back this problem could be avoided if the HTTP-POST type=file was possible

this script would be designed for uTorrents webUI interface for anyone whos familiar... basicly its a web interface for the program that among other things can accept URL's as a means of adding new files to download, as an alternative it also accepts files via the HHTP-POST type=file method i see the 'work around' method but i dont understand the example, as it contains no urls or other comparable fields

im out of ideas.. thank for any tips!

Share this post


Link to post
Share on other sites
DaleHohm

Sorry, don't know enough about this to follow your message. Please try to ask a more specific question.

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

Share this post


Link to post
Share on other sites
JohnMC

I guess i should start by trying to understand the 'work around' for HTTP-POST type=file

here is the code from help file:

#include <IE.au3>

$oIE = _IE_Example("form")

; Hide the browser window to demonstrate sending text to invisible window
_IEAction($oIE, "invisible")

$oForm = _IEFormGetObjByName($oIE, "ExampleForm")
$oInputFile = _IEFormElementGetObjByName($oForm, "fileExample")

; Assign input focus to the field and then send the text string
_IEAction($oInputFile, "focus")
$hIE = _IEPropertyGet($oIE, "hwnd")
ControlSend($hIE, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "C:\myfile.txt")

MsgBox(0, "Success", "Value set to C:\myfile.txt")
_IEAction($oIE, "visible")

maybe im way off here, but based on the code in this example, this isnt what im looking for... i dont see any data about what URL the 'file' is being uploaded to, or anything of the such...

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  

×