Jump to content
Sign in to follow this  
SteveO

Is there something wrong with my syntax!?

Recommended Posts

SteveO

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")

Share this post


Link to post
Share on other sites
SteveO

Fixed it.

_IEFormGetObjByName no longer returns 0 as default when nothing is found.


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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.