Search found 3 matches
- 09 Jul 2022, 11:26
- Forum: Gaming Help (v1)
- Topic: Copying
- Replies: 1
- Views: 292
Copying
!p:: chatlogfile= %A_MyDocuments%\GTA CRMP User Files\SAMP\chatlog.txt FileRead, chattext, %chatlogfile% Loop, Parse, chattext, `n, `r { If (InStr(A_LoopField, "Administrator") != 12) Continue RegexMatch(A_LoopField, "^\[([\d:]+)\] .+? ([^\[\]]+)\[(\d+)\] .+? ([^\[\]]+)\[(\d+)\]\s*: (.+?)$", chatma...
- 09 Jul 2022, 11:24
- Forum: Помощь
- Topic: Копирование
- Replies: 1
- Views: 577
Копирование
!p:: chatlogfile= %A_MyDocuments%\GTA CRMP User Files\SAMP\chatlog.txt FileRead, chattext, %chatlogfile% Loop, Parse, chattext, `n, `r { If (InStr(A_LoopField, "Администратор") != 12) Continue RegexMatch(A_LoopField, "^\[([\d:]+)\] .+? ([^\[\]]+)\[(\d+)\] .+? ([^\[\]]+)\[(\d+)\]\s*: (.+?)$", chatma...
- 19 Jun 2022, 08:31
- Forum: Скрипты для Игр
- Topic: Копирование
- Replies: 0
- Views: 787
Копирование
NumpadSub:: FileRead, Str, %A_MyDocuments%\SAMP User Files\SAMP\chatlog.txt rx = ; Регулярное выражение разбито на части для упрощения понимания ( Join LTrim Comments m) ; Флаг m (multi-line) упрощает работу с многострочными текстами ^ ; Символ ^ - начало строки (с флагом m - любой строки, а не все...