Code: Select all
Input, lInput, T3*, {Enter}{Escape}, a,bb,bcedqas,d
MsgBox % lInput "`n" ErrorLevel
1. (EXPECTED) If you enter "ed", "ed" is returned as a partial match for "bcedqas" with ErrorLevel Match.
2. (EXPECTED) If you enter "qa", "qa" is returned as a partial match for "bcedqas" with ErrorLevel Match.
3. (UNEXPECTED) If you enter "bc", command times out, rather than returning partial match for the first 2 chars of "bcedqas" (which seems to be an unambiguous match).
4. (UNEXPECTED) If you enter "s", command times out, rather than returning partial match for the last char of "bcedqas".
5. (UNEXPECTED) If you enter "q", command times out, rather than returning partial match for the 5th char of "bcedqas".
6. (UNEXPECTED) If you enter "za", "za" is returned as a partial match (for what, I don't know) with ErrorLevel Match. It seems like this shouldn't be the case because "za" isn't contained within any of the strings!
The reason that #1, #2 and #6 (above) match appears to be because the second characters "d" and "a" and "a", respectively, are also standalone matches in the list. I don't think this is the intent of the command, right? Is this fixable?
I admit this is just a small issue, and the language on the whole is terrific. Once again, Lexikos and others, thanks for all your work making AHK the great language that it is today!