Викторина примера 1+1 (AHK)

aff

Известный
Автор темы
26
0
Сделал код

Код:
#Persistent
#SingleInstance FORCE
#MaxThreads
#MaxHotkeysPerInterval 200
#Include SAMP.ahk


global chatLog := A_MyDocuments "\GTA San Andreas User Files\SAMP\chatlog.txt"
SetTimer, ChatRead, 50


ChatRead()
{
    FileRead, chatLines, % chatLog
    lines := []
    Loop, Parse, % chatLines, % "`n`r"
        if (A_LoopField)
            lines.Push(A_LoopField)
    for k, v in lines
    {
        if (RegExMatch(v, "Викторина для умных... Сколько будет (\d+) + (\d+) ? Ответ писать в чат", chattext))
        {
            FileDelete, % chatLog
            Sleep, 200 ; Беспалевность
            SendChat(chattext1 + chattext2)
        }
    }
}
Но викторина по таймеру запускается а ахк молчит, что делать?)