Gui, +hwndhDHCPORION
Gui, Add, Picture, x0 w0 y205 h-1, C:\work\temp\dhcp\dhcp.gif
Gui, Color, 000000
Gui, Add, Button, x3 y3 w100 gSearchKRK, Красноярск
Gui, Add, Button, x3 y30 w100 gSearchABK, Абакан
Gui, Add, Button, x3 y57 w100 gSearchKNS, Канск
Gui, Add, Button, x3 y84 w100 gSearchIRK, Иркутск
Gui, Add, Button, x3 y111 w100 gSearchBRK, Братск
Gui, Add, Button, x3 y138 w100 gSearchCHGK, Черногорск
Gui, Add, Button, x3 y165 w100 gSearchZHGK, Железногорск
Gui, Add, Button, x3 y192 w100 gSearchMNSK, Минусинск
Gui, Show, w105 h260
Return
SearchKRK:
Gui, Destroy
Gui, KRAS:Color, 000000
Gui, KRAS:Add, Text, vText cred x0 y0 w0 h30
Gui, KRAS:Add, Edit, vMyEdit -WantReturn r1 y20 w200 h20,
Gui, KRAS:Add, Button,Default gButtonKRAS x160 y43 w50, Искать
Gui, KRAS:Show
return
SearchABK:
Gui, Destroy
Gui, ABK:Color, 000000
Gui, ABK:Add, Text, vText cred x0 y0 w0 h30
Gui, ABK:Add, Edit, vMyEdit -WantReturn r1 y20 w200 h20,
Gui, ABK:Add, Button,Default gButtonABK x160 y43 w50, Искать
Gui, ABK:Show
Return
SearchKNS:
Gui, Destroy
Gui, KNS:Color, 000000
Gui, KNS:Add, Text, vText cred x0 y0 w0 h30
Gui, KNS:Add, Edit, vMyEdit -WantReturn r1 y20 w200 h20,
Gui, KNS:Add, Button,Default gButtonKNS x160 y43 w50, Искать
Gui, KNS:Show
Return
SearchIRK:
Gui, Destroy
Gui, IRK:Color, 000000
Gui, IRK:Add, Text, vText cred x0 y0 w0 h30
Gui, IRK:Add, Edit, vMyEdit -WantReturn r1 y20 w200 h20,
Gui, IRK:Add, Button,Default gButtonIRK x160 y43 w50, Искать
Gui, IRK:Show
Return
SearchBRK:
Gui, Destroy
Gui, BRK:Color, 000000
Gui, BRK:Add, Text, vText cred x0 y0 w0 h30
Gui, BRK:Add, Edit, vMyEdit -WantReturn r1 y20 w200 h20,
Gui, BRK:Add, Button,Default gButtonBRK x160 y43 w50, Искать
Gui, BRK:Show
Return
SearchZHGK:
Gui, Destroy
Gui, BRK:Color, 000000
Gui, BRK:Add, Text, vText cred x0 y0 w0 h30
Gui, BRK:Add, Edit, vMyEdit -WantReturn r1 y20 w200 h20,
Gui, BRK:Add, Button,Default gButtonZHGK x160 y43 w50, Искать
Gui, BRK:Show
Return
SearchMNSK:
Gui, Destroy
Gui, BRK:Color, 000000
Gui, BRK:Add, Text, vText cred x0 y0 w0 h30
Gui, BRK:Add, Edit, vMyEdit -WantReturn r1 y20 w200 h20,
Gui, BRK:Add, Button,Default gButtonMNSK x160 y43 w50, Искать
Gui, BRK:Show
Return
SearchCHGK:
Gui, Destroy
Gui, BRK:Color, 000000
Gui, BRK:Add, Text, vText cred x0 y0 w0 h30
Gui, BRK:Add, Edit, vMyEdit -WantReturn r1 y20 w200 h20,
Gui, BRK:Add, Button,Default gButtonCHGK x160 y43 w50, Искать
Gui, BRK:Show
Return
ButtonKRAS:
Gui, Submit
GuiControlGet, MyEdit
Run "C:work\cmder\Cmder.exe" /task PuttyKRK
sleep, 1500
SetKeyDelay, -1
Send, ./search.sh %MyEdit% {enter}
ExitApp
Return
ButtonABK:
GuiControlGet, MyEdit
Run "C:work\cmder\Cmder.exe" /task PuttyABK
sleep, 1500
SetKeyDelay, -1
Send, ./search.sh %MyEdit% {enter}
ExitApp
Return
ButtonKNS:
GuiControlGet, MyEdit
Run, "C:work\cmder\Cmder.exe" /task PuttyKNS
sleep, 1500
SetKeyDelay, -1
Send, ./search.sh %MyEdit% {enter}
ExitApp
Return
ButtonIRK:
GuiControlGet, MyEdit
Run, "C:work\cmder\Cmder.exe" /task PuttyIRK
sleep, 1500
SetKeyDelay, -1
Send, ./search.sh %MyEdit% {enter}
ExitApp
Return
ButtonBRK:
GuiControlGet, MyEdit
Run, "C:work\cmder\Cmder.exe" /task PuttyBRK
sleep, 1500
SetKeyDelay, -1
Send, ./search.sh %MyEdit% {enter}
ExitApp
Return
ButtonZHGK:
GuiControlGet, MyEdit
Run, "C:work\cmder\Cmder.exe" /task PuttyZHGK
sleep, 1500
SetKeyDelay, -1
Send, ./search.sh %MyEdit% {enter}
ExitApp
Return
ButtonMNSK:
GuiControlGet, MyEdit
Run, "C:work\cmder\Cmder.exe" /task PuttyMNSK
sleep, 1500
SetKeyDelay, -1
Send, search.sh %MyEdit% {enter}
ExitApp
Return
ButtonCHGK:
GuiControlGet, MyEdit
Run, "C:work\cmder\Cmder.exe" /task PuttyCHGK
sleep, 1500
SetKeyDelay, -1
Send, ./search.sh %MyEdit% {enter}
ExitApp
Return
GuiClose:
KRASGuiClose:
ABKGuiClose:
KNSGuiClose:
IRKGuiClose:
BRKGuiClose:
ZHGKGuiClose:
MNSKGuiClose:
CHGKGuiClose:
ExitApp