Einfach ein & an die passende Stelle an die Beschriftung des Buttons hängen ![]()
Spoiler anzeigen
[autoit]
#include <GUIConstantsEx.au3>
[/autoit] [autoit][/autoit] [autoit]GUICreate("Button-Hotkey", 210, 80)
[/autoit] [autoit][/autoit] [autoit]GUICtrlCreateLabel("Please click a button!", 10, 10)
$YesID = GUICtrlCreateButton("&Yes", 10, 50, 50, 20)
$NoID = GUICtrlCreateButton("&No", 80, 50, 50, 20)
GUISetState()
[/autoit] [autoit][/autoit] [autoit]Do
$msg = GUIGetMsg()
Select
Case $msg = $YesID
MsgBox(0, "You clicked on", "Yes")
Case $msg = $NoID
MsgBox(0, "You clicked on", "No")
EndSelect
Until $msg = $GUI_EVENT_CLOSE
Siehe auch:
[autoit]GUISetAccelerators
[/autoit]