Code: Select all
Player1 = %Temp%
PlayerID1 = %Temp%
F2::
FileRead, logs, %A_Documents%\GTA San Andreas User Files\chatlog.txt ;
if (RegExMatch(logs, "Report: %Player1% (%PlayerID1%) is stuck.")) {
Send t/spec %PlayerID1%{Enter}
}
logs := ""
Code: Select all
Player1 = %Temp%
PlayerID1 = %Temp%
F2::
FileRead, logs, %A_Documents%\GTA San Andreas User Files\chatlog.txt ;
if (RegExMatch(logs, "Report: %Player1% (%PlayerID1%) is stuck.")) {
Send t/spec %PlayerID1%{Enter}
}
logs := ""
Code: Select all
regexForMatchingPlayerNicknames := ??????
regexForMatchingPlayerIDs := ??????
if (RegExMatch(logs, "`aim)Report: " regexForMatchingPlayerNicknames " \((?P<ID1>" regexForMatchingPlayerIDs ")\) is stuck.", Player)) {
Code: Select all
regexForMatchingPlayerNicknames := ??????
regexForMatchingPlayerIDs := ??????
F2::
FileRead, logs, %A_Documents%\GTA San Andreas User Files\chatlog.txt ;
if (RegExMatch(logs, "`aim)Report: " regexForMatchingPlayerNicknames " \((?P<ID1>" regexForMatchingPlayerIDs ")\) is stuck.", Player)) {
Send t/spec regexForMatchingPlayerIDs {Enter}
}
logs := ""