Jump to content
Sign in to follow this  
Jex

_IEFormSubmit problem

Recommended Posts

Jex

I want check Rapidshare links ( http://rapidshare.com/en/checkfiles.html ) but i can't submit form. I don't know what i need write for $Button variable.

#include <GUIConstants.au3>
#include <IE.au3>

GUICreate("Test", 640, 600)
$oIE = _IECreateEmbedded()
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 10, 620, 550)
$GUI_Button_Home = GUICtrlCreateButton("Test", 10, 565, 620, 30)
;GUICtrlSetState($GUIActiveX, $GUI_HIDE)
GUISetState()

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
        Case $msg = $GUI_Button_Home
            _IENavigate($oIE, "http://rapidshare.com/en/checkfiles.html")
            $Box = _IEGetObjByName ($oIE, "urls")
            _IEFormElementSetValue ($Box, "http://rapidshare.com/files/72635216/filename.zip")
            $Button = _IEGetObjByName ($oIE, "Check URLs")
            _IEFormSubmit($Button)
    EndSelect
WEnd

Share this post


Link to post
Share on other sites
Jex
Generator

I thought you had the $Button as an obj

#include <GUIConstants.au3>
#include <IE.au3>

GUICreate("Test", 640, 600)
$oIE = _IECreateEmbedded()
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 10, 620, 550)
$GUI_Button_Home = GUICtrlCreateButton("Test", 10, 565, 620, 30)
;GUICtrlSetState($GUIActiveX, $GUI_HIDE)
GUISetState()

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
        Case $msg = $GUI_Button_Home
            _IENavigate($oIE, "http://rapidshare.com/en/checkfiles.html")
            $Box = _IEGetObjByName ($oIE, "urls")
            _IEFormElementSetValue ($Box, "http://rapidshare.com/files/72635216/filename.zip")
            $Button = _IEFormGetCollection($oIE,0)
            _IEFormSubmit($Button)
    EndSelect
WEnd
Edited by Generator

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  

×