AceLoc Posted June 2, 2006 Share Posted June 2, 2006 #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 More sharing options...
Valuater Posted June 2, 2006 Share Posted June 2, 2006 (edited) 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 June 2, 2006 by Valuater Link to comment Share on other sites More sharing options...
KilRoy Posted June 2, 2006 Share Posted June 2, 2006 #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 More sharing options...
Valuater Posted June 2, 2006 Share Posted June 2, 2006 #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) Link to comment Share on other sites More sharing options...
AceLoc Posted June 2, 2006 Author Share Posted June 2, 2006 yeah well i thought it was a little harder then that.. thanks learned something new again,, and thnx for helping again! 'you2 Killroy ' [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
KilRoy Posted June 2, 2006 Share Posted June 2, 2006 Missed the space between the $ and Msg....my bad! I tested it with another program that has switches, and once I fixed the spaces, it worked fine! Sorry if I misled. KilRoy 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