Help implement the AHK algorithm for reading strings in TXT files and executing code.
I have files:
FILE .ini - BASE DATA
Code: Select all
[id_555]
game=USA
time_game=5
score_team1=2
score_team2=10
[id_999]
game=BRAZIL
time_game=60
score_team1=0
score_team2=0
Code: Select all
template file 1
_______________________________
time_game <33 ? ok:=1 : ok:=0
ok=1 AND game=USA ? result:=1 : 0
template file 2
_____________________________________________________
score_team2 > score_team1 AND game=BRAZIL ? result:=1 : 0
FILE - .ahk - for READ .ini AND .txt template
Code: Select all
IniRead, %key%, file.ini, %id%, %key%, %A_Space%
Loop, Read, ALL_files.txt
EVAL(A_LoopReadLine)
if result=1
Msgbox, OK