SteveO Posted July 21, 2008 Share Posted July 21, 2008 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. expandcollapse popupFor $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") Link to comment Share on other sites More sharing options...
SteveO Posted July 21, 2008 Author Share Posted July 21, 2008 Fixed it. _IEFormGetObjByName no longer returns 0 as default when nothing is found. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now