Code: Select all
Gui, Show , w400 h100, sample gui
Gui, Add, ComboBox, x10 y10 w380 Center vDROPDOWN, Red|Green
return
if DROPDOWN=Red
MyString = {Right 3}{Enter}
return
if DROPDOWN=Green
MyString = {Left 2}{Enter}
return
a::
Send, %MyString%
return
GuiClose:
ExitApp