私は専門家ではありませんが、約 6 時間かけて調べてみました。選択ウィンドウには 2 つのアイテムがあり、何を選択しても No1 のアイテムを選択します。後で、選択が機能する場合は、nr1、nr2 をアクションに置き換えます。助けてください!MyListbox1 で間違ったコードを使用していると思います。
Gui, Add, ListBox, vMyListBox1 gMyListBox1 w100 r10
{
GuiControl,, MyListBox1, Item1|Item2
}
Gui, Show
return
MyListBox1:
if A_GuiEvent <> DoubleClick
return
GuiControlGet, MyListBox1, %Item1%
GuiControlGet, MyListBox1, %Item2%
IfMsgBox, %Item1%
MsgBox, MsgBox You entered 1
return
IfMsgBox, %Item2%
MsgBox, MsgBox You entered 2
Return
GuiClose:
GuiEscape:
ExitApp