Code: Select all
AIS, AIS , AIS
Aero, Aero , Aeronautical
Code that I'm working with
Code: Select all
dict := {}
Loop, Read, Test.txt
{
row := StrSplit(A_LoopReadLine, ",")
key := row[1]
row.RemoveAt(1)
dict[key] := row
}
Counter := 0
; TEST
For Key,Val in dict
{
Loop % Val.Length()
{
If InStr(Clipboard,Val[A_Index], CaseSensitive = False)
{
match = %Key%
FileAppend, % Counter "|" match ",", Apply.txt
FileAppend, % match "`n", FeatureTypes.txt
break
}
}
Counter ++
}