Jump to content
Sign in to follow this  

Multiple variables in GUI

Recommended Posts


Hi, i need

$var1 = InputBox("title","variable 1")
$var2 = InputBox("title","variable 2")
$var3 = InputBox("title","variable 3")

to be in 1 single gui with 2 buttons, one to submit the variables to as shown in the input boxes and one to start the script.

Any help to what to do or what to start with would be appreciated

Share this post

Link to post
Share on other sites



$var1 = GUICtrlCreateInput("variable 1", 50, 50, 120, 20)
$var2 = GUICtrlCreateInput("variable 2", 50, 100, 120, 20)
$var3 = GUICtrlCreateInput("variable 3", 50, 150, 120, 20)

$button = GUICtrlCreateButton("&Start", 150, 350, 80, 30)


While 1
    $msg = GUIGetMsg()
    If $msg = -3 Then Exit
    If $msg = $button Then
        $read1 = GUICtrlRead($var1)
        $read2 = GUICtrlRead($var2)
        $read3 = GUICtrlRead($var3)
        MsgBox(0x0, "read", $read1 & @CRLF & $read2 & @CRLF & $read3)




Share this post

Link to post
Share on other sites

thanks for fast reply =] time to have a play around to see if i can get it to work =]

and nice links on your sig need to check them out more after too

Edited by keotix

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.