; ============================================================================

^+F4::

Code =

(

Option1 "text1"|

Option2 "text2"

)

Code_Filter := RegExReplace(Code, """.*?""")

StringReplace, Code_Filter, Code_Filter, `n, |, All


Gui, Add, ListBox, x6 y37 w180 h160 vStandardTexte gListbox, %Code_Filter%

Gui, Add, Edit, x6 y7 w180 h20 vEdit,

Gui, Add, Button, x6 y207 w180 h30 gButtonOK +Default, Send

Gui, Show, w194 h250, AUSWAHLNAME

GoSub, Listbox

Return

; ============================================================================

^+F5::

Code =

(

Option1 "text1"|

Option2 "text2"

)

Code_Filter := RegExReplace(Code, """.*?""")

StringReplace, Code_Filter, Code_Filter, `n, |, All


Gui, Add, ListBox, x6 y37 w180 h160 vStandardTexte gListbox, %Code_Filter%

Gui, Add, Edit, x6 y7 w180 h20 vEdit,

Gui, Add, Button, x6 y207 w180 h30 gButtonOK +Default, Send

Gui, Show, w194 h250, AUSWAHLNAME

GoSub, Listbox

Return

; ============================================================================


ButtonOK:

Gui, Submit

GuiControlGet, Text, , Edit

Send, %Text%

Gui, Destroy

Return



GuiEscape:

Gui, Destroy

Return



Listbox:

GuiControlGet, Output, , StandardTexte

if RegExMatch(Code, Output """(.*?)""", description)

GuiControl, , Edit, %description1%

return


GuiClose:

ExitApp