How to enable AHK_L features in AutoHotKey?

眉间皱痕 提交于 2019-12-12 04:44:53

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!