When I click or doubleclick an item of a listbox, the corresponding g- routine is called.
Is it possible to get ANY kind of reaction when I hit the enter key? I would like to be able to choose en entry with the arrow keys and then hit enter, but the enter key does not produce any reaction.
As a workaround, I could make "enter" a conditional hotkey, but isnt it possible to achieve that in a more natural way?
Listbox and the ENTER key Topic is solved
Re: Listbox and the ENTER key Topic is solved
Code: Select all
Gui, Font, s10
Gui, Add, ListBox, w200 r5 vcolor, Red||Green|Blue|Black|White
Gui, Add, Button, xm ym Hidden Default, OK
Gui, Show,, Test
Return
ButtonOK:
Gui, Submit
MsgBox, 64, Result, You picked %color%.
Return