Sign in to follow this  
Followers 0
keotix

Multiple variables in GUI

3 posts in this topic

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



Maybe...

GUICreate("")

$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)

GUISetState()

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)
    EndIf

WEnd

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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  
Followers 0