Func Window()
Local $SourcePath,$FilePath,$BuildNumber ,$btnOK,$btnCancel, $msg
$msg = 0
GUICreate("Auto It For Building", 500, 300, (@DesktopWidth - 500)/ 2, (@DesktopHeight - 300) / 2, -1); WS_EX_ACCEPTFILES
GUICtrlCreateGroup("Group 1", 20,20, 460, 260)
GUICtrlCreateLabel("Install Sourcr Path:", 40, 50,90,30)
$SourcePath = GUICtrlCreateInput("", 135,40, 330, 30)
GUICtrlCreateLabel("Update File Path:", 40, 95,90,30)
$FilePath = GUICtrlCreateInput("", 135,90, 330, 30)
GUICtrlCreateLabel("Build Number:", 40, 135,90,30)
$BuildNumber = GUICtrlCreateInput("", 135,130, 100, 30)
$btnOK = GUICtrlCreateButton("Ok", 270, 230, 70, 30)
$btnCancel = GUICtrlCreateButton("Cancel", 370, 230, 70, 30)
GUISetState()
While $msg <> $GUI_EVENT_CLOSE
$msg = GUIGetMsg()
Select
Case $msg = $btnCancel
ExitLoop
Case $msg = $btnOK
If (CheckStatus($FilePath)) Then
If (CheckStatus($SourcePath)) Then
;UpdateFiles()
MsgBox (0, "Successful","Happy!")
ExitLoop
Else
ContinueLoop
EndIf
Else
ContinueLoop
EndIf
EndSelect
WEnd
EndFunc ;==>Example