Jump to content

need little help here.


 Share

Recommended Posts

mmm i cant find the 'error' the error is

Line 31

Case $msg = $iMsgBoxAnswer = 6

Case $msg = ^ERROR

Error: Variable used without being declared

here's the script :/

#include <GUIConstants.au3>

$Form1 = GUICreate("Setup - Bootleggers Bot v0.8.0", 497, 361, 439, 279)
$Pic1 = GUICtrlCreatePic("C:\Documents and Settings\MMORPG\Bureaublad\Setup.bmp", 0, 0, 165, 317)
$Tab1 = GUICtrlCreateTab(0, 315, 500, 60)
GUICtrlCreateTabItem("")
$Button1 = GUICtrlCreateButton("Next >", 328, 328, 75, 23)
$Button2 = GUICtrlCreateButton("Cancel", 416, 328, 75, 23)
GUISetState(@SW_SHOW)

While 1
    $msg = GuiGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE Or $msg = $Button2
If Not IsDeclared("iMsgBoxAnswer") Then Dim $iMsgBoxAnswer
$iMsgBoxAnswer = MsgBox(292,"Exit Setup","Setup is not complete. If you exit now, the program will not be installed." & @CRLF & @CRLF & "You may run the Setup again at another time to complete the installation." & @CRLF & @CRLF & "Exit Setup?")
Select
   Case $iMsgBoxAnswer = 6 ;Yes

   Case $iMsgBoxAnswer = 7 ;No
EndSelect
        Case $msg = $iMsgBoxAnswer = 6 ;Yes
ExitLoop
;;;;;;;
    EndSelect
WEnd
Exit

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Link to comment
Share on other sites

#include <GUIConstants.au3>

$Form1 = GUICreate("Setup - Bootleggers Bot v0.8.0", 497, 361, 439, 279)
$Pic1 = GUICtrlCreatePic("C:\Documents and Settings\MMORPG\Bureaublad\Setup.bmp", 0, 0, 165, 317)
$Tab1 = GUICtrlCreateTab(0, 315, 500, 60)
GUICtrlCreateTabItem("")
$Button1 = GUICtrlCreateButton("Next >", 328, 328, 75, 23)
$Button2 = GUICtrlCreateButton("Cancel", 416, 328, 75, 23)
GUISetState(@SW_SHOW)

While 1
    $msg = GuiGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE Or $msg = $Button2
            If Not IsDeclared("iMsgBoxAnswer") Then Dim $iMsgBoxAnswer
            $iMsgBoxAnswer = MsgBox(292,"Exit Setup","Setup is not complete. If you exit now, the program will not be installed." & @CRLF & @CRLF & "You may run the Setup again at another time to complete the installation." & @CRLF & @CRLF & "Exit Setup?")
            If $iMsgBoxAnswer = 6 Then ExitLoop;Yes
    EndSelect
WEnd
Exit
will still work.

Edited by ParoXsitiC
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...