Jump to content

_IEFormSubmit problem


Jex
 Share

Recommended Posts

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
Link to comment
Share on other sites

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