Sign in to follow this  
Followers 0
timmie28

Need help with my radiobutton

2 posts in this topic

Hi.

im getting this error all the time im compiling it (34) : ==> Variable used without being declared.:

#include <GUIConstants.au3>
#include <IE.au3> 
$BumpTimer = TimerInit()
$4HourBump = 60*60*4*1000
$ManyBumps = 2
$i = 0

GUICreate("BumpBot", @DesktopWidth/2, @DesktopHeight/2) ; will create a dialog box that when displayed is centered

GUICtrlCreateGroup ("proporties for BumpBot", 10, 10, @DesktopWidth/2-20, @DesktopHeight/2-20, $WS_DLGFRAME)
$Button_1 = GUICtrlCreateButton ("Write Post",  20, 250, 100)
$topicmes = GUICtrlCreateEdit("Write your topic message here...", 20, 30, 180, 30, $WS_DLGFRAME)
$postmes = GUICtrlCreateEdit("Write your post message here...", 20, 70, 180, 180, $WS_DLGFRAME)
$TradeEuropeLadder = GUICtrlCreateRadio("Trade Europe Ladder", 250, 20)
$TradeEuropeNoNLadder = GUICtrlCreateRadio("Trade Europe NonLadder", 250, 40)
GUICtrlSetState ($TradeEuropeLadder, $GUI_CHECKED)

GUISetState ()      ; will display an  dialog box with 2 button


; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Button_1
            $postmes2 = GUICtrlRead($postmes)
            $topicmes2 = GUICtrlRead($topicmes)
            Select
            Case $msg = $TradeEuropeLadder And BitAND(GUICtrlRead($TradeEuropeLadder), $GUI_CHECKED) = $GUI_CHECKED 
                    $oIE = _IECreate("http://forums.d2jsp.org/index.php?showforum=170")
            Case $msg = $TradeEuropeNoNLadder
                    $oIE2 = _IECreate("http://forums.d2jsp.org/index.php?showforum=54")
            EndSelect
            _IELoadWait ($oIE)
            WinSetState($oIE, "", @SW_MAXIMIZE)
            _IELinkClickByText ($oIE, "new topic")
            _IELoadWait ($oIE)
            $oform = _IEFormGetObjByName($oIE, "REPLIER")
            $IE_PostMes = _IEFormElementGetObjByName($oform, "post")
            $IE_TopicMes = _IEFormElementGetObjByName($oform, "ttitle")
            $IE_Submit = _IEFormElementGetObjByName ($oform, "preview")
            
            ; Set field values and submit the form
            _IEFormElementSetValue($IE_PostMes, $postmes2)
            _IEFormElementSetValue($IE_TopicMes, $topicmes2)
            _IEAction ($IE_Submit, "click")
                Do
                    If TimerDiff($BumpTimer) >= $4HourBump Then
                        MsgBox(0, "", "the bump time has been reached writing bump message....")
                    EndIf
                    $i = $i +1
                Until $i >= $ManyBumps
                
    EndSelect
Wend

Share this post


Link to post
Share on other sites



Hi! It`s wrong:

Select
            Case $msg = $TradeEuropeLadder And BitAND(GUICtrlRead($TradeEuropeLadder), $GUI_CHECKED) = $GUI_CHECKED 
                    $oIE = _IECreate("http://forums.d2jsp.org/index.php?showforum=170")
            Case $msg = $TradeEuropeNoNLadder
                    $oIE2 = _IECreate("http://forums.d2jsp.org/index.php?showforum=54")
            EndSelectoÝ÷ Ûú®¢×¯+aÆ®¶­sdb&DäBuT7G&Å&VBb33cµG&FTWW&÷TÆFFW"Âb33c´uTô4T4´TBFVà b33c¶ôRÒôT7&VFRgV÷C¶GG¢òöf÷'V×2æC&§7æ÷&röæFWç÷6÷vf÷'VÓÓsgV÷C² VÇ6P b33c¶ôRÒôT7&VFRgV÷C¶GG¢òöf÷'V×2æC&§7æ÷&röæFWç÷6÷vf÷'VÓÓSBgV÷C² VæD
:)

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  
Followers 0