https://blast.hk/threads/31713/Я ничего не понял, но сделал своё. Как сделать чтобы читало первую строчку?
Код:#IfWinActive GTA:SA:MP #Include SAMP.ahk Numpad9:: global file_chat := A_MyDocuments "/GTA San Andreas User Files/SAMP/chatlog.txt" SetTimer, Chat, 50 Chat() { FileRead, chatlog, % file_chat if (RegExMatch(chatlog, "Славик")) { sleep 1000 Send {f6}/pee {Enter} } } return
А если буквально первую, то FileReadLine