Do you mean something like this?
#include <GUIConstants.au3>
$Form1 = GUICreate("Form1", 399, 129)
$Label1 = GUICtrlCreateLabel("User Name:", 24, 16, 60, 17)
$Label2 = GUICtrlCreateLabel("Password:", 24, 48, 53, 17)
$Label3 = GUICtrlCreateLabel("Domain:", 24, 80, 43, 17)
$inputUserName = GUICtrlCreateInput("", 88, 16, 169, 21)
$inputPassword = GUICtrlCreateInput("", 88, 48, 169, 21)
$inputDomain = GUICtrlCreateInput("", 88, 80, 169, 21)
$Button1 = GUICtrlCreateButton("Go", 288, 48, 75, 25, 0)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$userName = GUICtrlRead($inputUserName)
$password = GUICtrlRead($inputPassword)
$domain = GUICtrlRead($inputDomain)
MsgBox(0, "", "You typed in the following information:" & @CRLF & $userName & @CRLF & $password & @CRLF & $domain)
EndSwitch
WEnd