Sign in to follow this  
Followers 0
AceLoc

Okay

6 posts in this topic

#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]

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Valuater

NEWHeader1.png

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

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

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