Code: Select all
Gui, +ToolWindow +AlwaysOnTop
Gui, Add, Tab2, vTAB,` 2 | 3 | 4 |
loop 3
{
Gui, Tab, %A_index%
Loop
{
FileReadLine, line, S:\Смирнов\1_smen.txt, %A_Index%
if ErrorLevel
break
Gui, Add, Button, gGetName, %line%
}
Gui, Add, Text , w0 h0 x+10 y190
Loop
{
FileReadLine, line, S:\Смирнов\2_smen.txt, %A_Index%
if ErrorLevel
break
Gui, Add, Button, gGetName, %line%
}
Gui, Add, Text, x450 y5 h104 0x11
}
Gui, Show,
return
getname:
GuiControlGet, var,, % A_GuiControl
GuiControl, Disable, % var