Jump to content

Recommended Posts

Posted

Well...I updated my autoit to the latest version and its like.....my program doesn't want to work anymore.

Is there something wrong with my syntax?

I added message boxes to try and troubleshoot and the message boxes are retuning nothing.

For $I = $startpost To $endpost
        
        GUICtrlSetData($Input22, $I)
        
        While $LastNumber = $UseNumber
            $UseNumber = (Random(2, 3, 1))
        WEnd
        
        _IENavigate($IE,$Thread[$UseNumber] & $sid,0)
        ;_IEAction ($IE, "refresh")
        Sleep(1500)
        $Post = _IEFormGetObjByName($IE,"post")
        msgbox(0, "Test", $post)
        
        While $Post == 0
            $Post = _IEFormGetObjByName($IE,"post")
            msgbox(0, "Test", $post)
        WEnd
        msgbox(0, "Test", $post)
        
        $Mess = _IEFormElementGetObjByName($Post,"message")
        
        While $Mess == 0
            $Mess = _IEFormElementGetObjByName($Post,"message") 
            msgbox(0, "Test", $Mess)
        Wend
        msgbox(0, "Test", $Mess)
        
        $MsgCheck = _IEFormElementGetValue($Mess)
        
        While $MsgCheck == 0 
            If $numbposts = $GUI_CHECKED Then
            _IEFormElementSetValue($Mess, $startglobalbbcode & $Message & $endmsgbbcode & $startnumbbbcode & $sym & $I & $endglobalbbcode)
            $MsgCheck = _IEFormElementGetValue($Mess)
            Else
            _IEFormElementSetValue($Mess, $startglobalbbcode & $Message & $endmsgbbcode & $endglobalbbcode)
            $MsgCheck = _IEFormElementGetValue($Mess)
            EndIf
        WEnd
        
        _IEFormImageClick ($Post,"Submit","alt")

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
×
×
  • Create New...