在 autohotkey 中填充下拉列表时出现问题

Trouble in populating the drop down list in autohotkey

^Q::
ar := ["A|B"]
lst := ar[0]
Gui, Add, DropDownList, var, %lst%
Gui, Show
return

这没有填写下拉列表。它是空的。但是初始化 lst := "A|B" 工作正常。我做错了什么?

AHKs 数组是从 1 开始的,而不是从 0 开始的。
所以 lst := ar[1] 会起作用。