Cmd line bug
Posted: 30 Nov 2017, 06:13
Not sure if it's a matter of no one using command line arguments with autohotkey_h, or that no one uses autohotkey_h v2, or a mixture of both, but, since release 2 a081 H003 (oldest one I have) autohotkey_h has been unable to parse cmd line args properly.
It repeats the arguments. This issue doesn't happen with lexikos' version.
To reproduce
Ahk file
Command prompt
Above results in first second third second passed to the script.
Command prompt
Above results in first second third fourth second fourth passed to the script.
It repeats the arguments. This issue doesn't happen with lexikos' version.
To reproduce
Ahk file
Code: Select all
for k,v in a_args
msgbox v
Code: Select all
autohotkey.exe autohotkey.ahk first second third
Command prompt
Code: Select all
autohotkey.exe autohotkey.ahk first second third fourth