#include #include #include #include #include #include Const $Username = GUICtrlRead ("") Const $Profile = "C:\users" #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("title", 347, 317, 379, 128) $Label1 = GUICtrlCreateLabel("Please Write your Username:", 24, 136, 300, 65) $Input1 = GUICtrlCreateInput("", 32, 216, 297, 21) $Button1 = GUICtrlCreateButton("OK", 128, 248, 81, 33) $Pic1 = GUICtrlCreatePic("", 8, 0, 332, 108) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 GUICtrlRead($Input1) If FileExists ($Profile & $Input1) Then MsgBox (0, "Info", "Username Exists" , 0, "") Else MsgBox (0, "Info", "Wrong Username", 0, "") EndIf If FileExists ($Profile & $Input1) Then ExitLoop EndIf EndSwitch WEnd