I can't figure it out myself, so please help me.
In LisBox, I select a few fields and after pressing the OK button, MsgBox will appear with info about what fields have been selected.
I need the results to be in separate MsgBox.
Is it possible to set a limit on the number of selected fields? e.g. 5 and if not, could only 5 MsgBox appear and other selections will be ignored. thanks for any help
Code: Select all
List=White|Yellow|Orange|Red|Green|Blue|Violet|Black
Gui, Add, ListBox, Multi vMyListBox r10, %List%
Gui, Add, Button, Default, OK
Gui Show,
Return
ButtonOK:
Gui, Submit, Nohide
MsgBox % MyListBox
return
ESC::ExitApp