Тема: AHK: Нужно чуть-чуть подправить готовый код
TrayTip, Выберите лог файл SA:MP, Документы\GTA San Andreas User Files\SAMP\chatlog.txt, 5, 1
FileSelectFile, SelectedFile, 3, chatlog,Открыть файл, Chatlog (*.txt)
if SelectedFile =
{
TrayTip, Внимание, Вы закрыли программу!, 5, 1
sleep, 2000
ExitApp
}
SetTimer, Check, 1000
return
Check:
Loop, Read, %SelectedFile%
{
IfInString, A_LoopReadLine, ] Server closed the connection.
{
Goto, reconnect
}
}
returnМне надо чтобы в логе искалось несколько записей а не одна.
{
IfInString, A_LoopReadLine, ] Server closed the connection.
{Это то что ищет

