hi my friends,
I do script but I can not get code that return me to main form
What is script that return to main form if $input =0
I do script but I can not get code that return me to main form
#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("main form", 442, 169, 192, 124) $Input1 = GUICtrlCreateInput("", 112, 56, 201, 21) $Label1 = GUICtrlCreateLabel("type any thing in following box for display in message", 24, 24, 387, 28) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $Button1 = GUICtrlCreateButton("display", 272, 96, 131, 33) GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif") $Button2 = GUICtrlCreateButton("Exit", 80, 96, 107, 33) GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif") GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $Button1 if $Input1 <>"" Then MsgBox(0,"", GUICtrlRead($input1)) Else MsgBox(0,""," you do not enter any thing in box therefor you will return to main form") ;what is script that return to main form EndIf case $Button2 Exit EndSwitch WEnd
What is script that return to main form if $input =0