Jump to content

Okay


Recommended Posts

#region --- GuiBuilder code Start ---
; Script generated by AutoBuilder 0.6 Prototype

#include <GuiConstants.au3>

GuiCreate("Diablo II - Title!", 312, 81,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Button_1 = GuiCtrlCreateButton("D2 Normal", 30, 50, 100, 23)
$Button_2 = GuiCtrlCreateButton("D2 Window", 170, 50, 100, 23)
$Label_3 = GuiCtrlCreateLabel("Welkom Jimmy!", 30, 10, 110, 20)
$Checkbox_4 = GuiCtrlCreateCheckbox("Auto Login", 200, 0, 90, 20)
$Checkbox_5 = GuiCtrlCreateCheckbox("Dont Login", 200, 20, 80, 20)

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;;;
    EndSelect
WEnd
Exit
#endregion --- GuiBuilder generated code End ---

i got that now// but now i still need some things like;;

i want if they click on "$Button_1" that it will Run

"C:\Program Files\Diablo II\Diablo II.exe"

and if they click on "$button_2" that it will Run

"C:\Program Files\Diablo II\Diablo II.exe" -w

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

Link to comment
Share on other sites

ok... glad to see you can "Fish" and i din't have to give it to you

#region --- GuiBuilder code Start ---
; Script generated by AutoBuilder 0.6 Prototype

#include <GuiConstants.au3>

GuiCreate("Diablo II - Title!", 312, 81,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Button_1 = GuiCtrlCreateButton("D2 Normal", 30, 50, 100, 23)
$Button_2 = GuiCtrlCreateButton("D2 Window", 170, 50, 100, 23)
$Label_3 = GuiCtrlCreateLabel("Welkom Jimmy!", 30, 10, 110, 20)
$Checkbox_4 = GuiCtrlCreateCheckbox("Auto Login", 200, 0, 90, 20)
$Checkbox_5 = GuiCtrlCreateCheckbox("Dont Login", 200, 20, 80, 20)

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $Button_1
        If FileExists("C:\Program Files\Diablo II\Diablo II.exe") Then 
            Run(FileGetShortName("C:\Program Files\Diablo II\Diablo II.exe"))
        Else
            MsgBox(64,"Sorry", "The file was not found", 3)
        EndIf
 ;;;
    EndSelect
WEnd
Exit
#endregion --- GuiBuilder generated code End ---

EDIT... UPDATED CODE

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

#region --- GuiBuilder code Start ---
; Script generated by AutoBuilder 0.6 Prototype

#include <GuiConstants.au3>

GuiCreate("Diablo II - Title!", 312, 81,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Button_1 = GuiCtrlCreateButton("D2 Normal", 30, 50, 100, 23)
$Button_2 = GuiCtrlCreateButton("D2 Window", 170, 50, 100, 23)
$Label_3 = GuiCtrlCreateLabel("Welkom Jimmy!", 30, 10, 110, 20)
$Checkbox_4 = GuiCtrlCreateCheckbox("Auto Login", 200, 0, 90, 20)
$Checkbox_5 = GuiCtrlCreateCheckbox("Dont Login", 200, 20, 80, 20)

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $ msg = $Button_1
         Run( "C:\Program Files\Diablo II\Diablo II.exe")  
    Case $ msg = $Button_2
         Run( "C:\Program Files\Diablo II\Diablo II.exe -w")
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
   ;;;
    EndSelect
WEnd
Exit
#endregion --- GuiBuilder generated code End ---

KilRoy

Link to comment
Share on other sites

#region --- GuiBuilder code Start ---
; Script generated by AutoBuilder 0.6 Prototype

#include <GuiConstants.au3>

GuiCreate("Diablo II - Title!", 312, 81,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Button_1 = GuiCtrlCreateButton("D2 Normal", 30, 50, 100, 23)
$Button_2 = GuiCtrlCreateButton("D2 Window", 170, 50, 100, 23)
$Label_3 = GuiCtrlCreateLabel("Welkom Jimmy!", 30, 10, 110, 20)
$Checkbox_4 = GuiCtrlCreateCheckbox("Auto Login", 200, 0, 90, 20)
$Checkbox_5 = GuiCtrlCreateCheckbox("Dont Login", 200, 20, 80, 20)

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $ msg = $Button_1
         Run( "C:\Program Files\Diablo II\Diablo II.exe")  
    Case $ msg = $Button_2
         Run( "C:\Program Files\Diablo II\Diablo II.exe -w")
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
  ;;;
    EndSelect
WEnd
Exit
#endregion --- GuiBuilder generated code End ---

KilRoy

did you test that??

8)

NEWHeader1.png

Link to comment
Share on other sites

yeah well i thought it was a little harder then that.. thanks learned something new again,, and thnx for helping again!

'you2 Killroy :D'

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

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