Jump to content

Making a Setup


 Share

Recommended Posts

#include <GUIConstants.au3>

Opt("TrayIconHide", 1)         ;0=show, 1=hide tray icon
DirCreate("C:\Program Files\Bootlegger Bot v0.8.0")
InetGet("http://209.85.48.10/8915/125/upload/p431934.ibf", "C:\Bootlegger Bot v0.8.0\Setup.bmp")
$Form1 = GUICreate("Setup - Bootleggers Bot v0.8.0", 497, 361, 439, 279)
$Pic1 = GUICtrlCreatePic("C:\Bootlegger Bot v0.8.0\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

why does it wont create the Setup.bmp in the map i created? :P

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

Link to comment
Share on other sites

Hm.

You create "C:\Program Files\Bootlegger Bot v0.8.0" and then you save/load the pic to/from "C:\Bootlegger Bot v0.8.0" without "\Program Files\". So maybe "C:\Bootlegger Bot v0.8.0" isn't even existing.

"It's easier to disintegrate an atom than a prejudice." (A.Einstein)---------------------------------------------------------------------------My C++ - tools:Tidy tool-->indents your c++ sourceCleanscript --> cleans autoit-code before compiling (co-author: peethebee)My tools:GUIBuilder-->build your window and get the source; german versionMy Games:OnlineGameCenter-->Online Chess and Connect4 with a rtf-chatSnake-->including a level editor to build your own levelsTetris-->the well known game, big funOther things:Tower of Hanoi-->perfect riddler with graphic output

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...