Jump to content

IE browse problems


Recommended Posts

Hey, i have some problems with IE.I wanna do a simple rapidshare uploader.So it's go 2 the rapidshare page then click browse.And in this point i need some help.How can i write path in this browse window?

Thank you for your replays.

#include <IE.au3>

$oIE = _IECreate("http://www.rapidshare.com")

$oSubmit = _IEGetObjByName ($oIE, "dateiname")

_IEAction ($oSubmit, "click")

_IELoadWait ($oIE)

Link to comment
Share on other sites

I don't use rapidshare. You'll need to ask your question in a way that does not require knowledge of it.

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

$oIE = _IECreate("http://www.rapidshare.com",1, 1, 1, 0)
$oDoc = _IEDocGetObj($oIE)
$oArray = $oDoc.getElementsByTagName("input")

for $element in $oArray
if $element.id="dateiname" then
WinSetState("RapidShare: Easy Filehosting - Microsoft Internet Explorer", "", @SW_MAXIMIZE)
_IELoadWait ($oIE)
$iScreenX = _IEPropertyGet($element, "screenx")
$iScreenY = _IEPropertyGet($element, "screeny")
$iBrowserX = _IEPropertyGet($element, "browserx")
$iBrowserY = _IEPropertyGet($element, "browserY")
$iWidth = _IEPropertyGet($element, "width")
$iHeight = _IEPropertyGet($element, "height")
MouseMove($iScreenX + $iWidth-2, $iScreenY + $iHeight/2)
MouseClick("left")

EndIf
next

This is working for me. Unfortunately i cant do it better as the input type = file is making some restrictions from security point of view. Maybe Dale would have some workaround or better solution.

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...