Jump to content

_IEFormSubmit


Recommended Posts

I'm trying to make a simple Myspace Comment spammer using _IEFormSubmit, but it wont send, and I was wondering if theres a function like it to "press" a submit button? i noticed alot of the functions in _IE wait untill the page finishes loading, but can something continually "press" that submit button before it finishes loading? =D

Thanks!

~MethodZero

This is my script (alot was Copy&Pasted from AutoIt Help)

#include <GUIConstants.au3>
#include <IE.au3>
_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()
GUICreate("Myspace Comment Spammer", 440, 400, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
        $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 440, 360)
$GUI_Button_Back = GUICtrlCreateButton("Back", 10, 360, 100, 30)
$GUI_Button_Forward = GUICtrlCreateButton("Forward", 120, 360, 100, 30)
$GUI_Button_Home = GUICtrlCreateButton("Home", 230, 360, 100, 30)
$GUI_Button_Stop = GUICtrlCreateButton("SPAM!", 340, 360, 100, 30)

GUISetState()       ;Show GUI

_IENavigate ($oIE, "http://www.myspace.com")
WinSetTrans("Myspace Comment Spammer","",200)
; Waiting for user to close the window
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $GUI_Button_Home
            _IENavigate ($oIE, "http://www.myspace.com/")
        Case $msg = $GUI_Button_Back
            _IEAction ($oIE, "back")
        Case $msg = $GUI_Button_Forward
            _IEAction ($oIE, "forward")
        Case $msg = $GUI_Button_Stop
            $oForm = _IEFormGetObjByName ($oIE, "aspnetForm")
            $oText = _IEFormElementGetObjByName ($oForm, "ctl00$Main$postComment$ConfirmPostButton")
            _IEFormElementSetValue ($oText, "Spam Hack Confirmed")
            $time=InputBox("Repeat!","Send How Many Comments?")
            $res=0
            Do
                _IEFormSubmit ($oForm)
                $res=$res+1
            Until $res = $time
    EndSelect
WEnd

GUIDelete()

Exit

[center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]

Link to comment
Share on other sites

>=(

Everytime I get fed up of searching and post it here, I always end up figuring out...

never mind...

_IEAction()

thanks

[center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]

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