versuchs mal so:
Spoiler anzeigen
[autoit]
;Includes
#include <GUIConstantsEx.au3>
;GUICreate
GUICreate("myGUI", 400, 200)
GUISetState(@SW_SHOW)
[/autoit] [autoit][/autoit] [autoit];Combo
$combo = GUICtrlCreateCombo("+!d", 10, 10) ; Erstellt das erste Item
GUICtrlSetData(-1, "+!e|+!f")
$b1 = GUICtrlCreateButton ("OK", 40, 40)
While 1
$msg = GUIGetMsg()
if $msg = $b1 Then HotKeySet(GUICtrlRead($combo), "ShowMessage")
if $msg = $Gui_event_close Then ExitLoop
WEnd
Func ShowMessage()
MsgBox(4096,"","Das ist eine Nachricht.")
EndFunc