Gui, Add, Edit, x12 y29 w110 h20 vName, Ваше имя.
Gui, Add, Edit, x132 y29 w110 h20 vSurname, Ваша фамилия.
Gui, Add, Edit, x472 y29 w50 h20 vIdtvoi, Ваш ID.
Gui, Add, Edit, x532 y29 w70 h20 vTag, Ваша маркировка.
Gui, Add, Edit, x612 y29 w110 h20 vZv, Ваше звание (сокращенное).
Gui, Add, Button, x502 y199 w100 h30 gSave1, ЗАПУСК!!!
Gui, Add, Button, x632 y199 w100 h30 gSave2, СОХРАНИТЬ!
Gui, Add, Button, x632 y159 w100 h30 gOpen1, ОТКРЫТЬ СОХРАНЕНИЕ!
Gui, Add, DropDownList, x72 y59 w100 h70 vVibor1 AltSubmit, Мужщина|Женщина
Gui, Add, GroupBox, x2 y9 w260 h80 , Персональная информация
Gui, Add, GroupBox, x462 y9 w270 h80 , Фракционные данные
Gui, Add, DropDownList, x552 y59 w100 h70 , DropDownList
; Generated using SmartGUI Creator for SciTE
Gui, Show, w756 h251, Универсальный биндер МВД.
return
GuiClose:
ExitApp
return
Save1:
Gui, Submit
if Vibor1 = 1
{
Female =
Female1 = ка
}
if Vibor1 = 2
{
Female = а
Female1 = цы
}
Return
Open1:
FileSelectFile, SelectedFile, 3, , Open a file, Text Documents (*.txt)
if SelectedFile =
MsgBox, The user didn't select anything.
else
FileReadLine, 1str, %SelectedFile%, 1
GuiControl,, Name, %1str%
FileReadLine, 2str, %SelectedFile%, 2
GuiControl,, Surname, %2str%
FileReadLine, 3str, %SelectedFile%, 3
GuiControl,, Idtvoi, %3str%
FileReadLine, 4str, %SelectedFile%, 4
GuiControl,, Tag, %4str%
FileReadLine, 5str, %SelectedFile%, 5
GuiControl,, Zv, %5str%
FileReadLine, 6str, %SelectedFile%, 6
GuiControl ,, Vibor1, %6str%
return
Save2:
FileSelectFile, SelectedFile, 3, , Save a file, Text Documents (*.txt)
if SelectedFile =
MsgBox, The user didn't select anything.
else
GuiControlGet, Name
GuiControlGet, Surname
GuiControlGet, Idtvoi
GuiControlGet, Tag
GuiControlGet, Zv
GuiControlGet, Vibor1
me1 = % Name
me2 = % Surname
me3 = % Idtvoi
me5 = % Tag
me6 = % Zv
me7 = % Vibor1
FSave1 = %me1%`n%me2%`n%me3%`n%me5%`n%me6%`n%me7%
FileDelete, %SelectedFile%
FileAppend, %FSave1%, %SelectedFile%
return