$hWnd = WinWait('IPnetServer Console')
While 1
If StringInStr(ControlGetText($hWnd, '', '[CLASSNN:Edit2]'), 'Setting our NAT to Open') Then
ControlSetText($hWnd, '', '[CLASSNN:Edit1]', 'Необходимые данные')
ControlSend($hWnd, '', '[CLASSNN:Edit1]', '{ENTER}')
ExitLoop
EndIf
Sleep(100)
WEnd