Code: Select all
#Requires AutoHotkey v2.0
loop files, ["*.ahk", "*.txt"]
msgbox a_loopfilename
Code: Select all
#Requires AutoHotkey v2.0
loop files, "*.ahk, *.txt"
msgbox a_loopfilename
I should probably mention here that the primary motivation is to support the Loop Files [FilePattern1, FilePattern2] else clause. Yes, I can have a sequence of Loop Files, but that would kind of defeat the purpose of the new loop-else construct in v2.