Gui, Add, Button, x296 y10 w100 h30 , Submit
Gui, Add, Button, x296 y70 w100 h20 , Close
Gui, Add, Edit, x6 y40 w240 h20 vRingAcct,
Gui, Add, Text, x6 y10 w240 h20 , Text
Gui, Add, Progress, x6 y70 w240 h20 , 0
; Generated using SmartGUI Creator 4.0
Gui, Show, x131 y91 h99 w408, Ring Search
Return
ButtonSubmit:
Gui , Submit , NoHide
FileCreateDir , H:\FL-CPTP-FS3\Ring\
AlreadyExists = 0
Loop , Read , H:\FL-CPTP-FS3\Ring\RingInfoFile.txt
{
If ( RingAcct = A_LoopReadLine )
{
MsgBox , The Account already exist.
AlreadyExists = 1
Break
}
}
If not AlreadyExists
FileAppend , %RingAcct%`n , H:\FL-CPTP-FS3\Ring\RingInfoFile.txt ; 1
Return
;**********Progress Bar********************
Gui, Add, Progress, x806 y600 w90 h20 , 100
;**********Progress Bar********************
return
ButtonClose:
Gui , Submit , NoHide
IfWinExist, Ring Search
WinClose ; use the window found above
return
GuiClose:
ExitApp