This is my code so far..
Code: Select all
Loop, read, gameLogs.txt
{
if InStr(A_LoopReadLine, "Game over.")
{
Msgbox, gg
; startAnother()
}
}
Code: Select all
Loop, read, gameLogs.txt
{
if InStr(A_LoopReadLine, "Game over.")
{
Msgbox, gg
; startAnother()
}
}
Found solutions from these links. thanks so much.sofista wrote: ↑18 Aug 2022, 18:40I haven't tested them myself, but these posts may help you:
https://www.autohotkey.com/board/topic/59915-constantly-read-a-perpetually-written-to-txt-file/#entry378277
viewtopic.php?t=47894