问题
I am running AHK_L which I downloaded here:
http://l.autohotkey.net/AutoHotkey_L_Install.exe
By all accounts, running the following script should break standard AHK, but popup three Msgboxes in AHK_L.
arr := Array("b", "a", "c")
Loop, % arr.len()
Msgbox, % arr[A_Index]
I get nothing; no error, and no Msgboxes. Why is this happening to me? AHK_L version 1.1.09.04.
More specifically, why does this forum post:
http://www.autohotkey.com/board/topic/45876-ahk-l-arrays/
... contain mostly commands that don't work? Are these from an older version of AHK_L? Etc.
回答1:
Here you go..
arr := Array("b", "a", "c")
Loop, % arr.MaxIndex()
{
Msgbox, % arr[A_Index]
}
来源:https://stackoverflow.com/questions/15712415/how-to-enable-ahk-l-features-in-autohotkey