Hallo Sen,
hm... d.h. ich muß ganz normale Hotkeys verwenden.
...habe ich das richtig verstanden:
Ich mache den Code für jeden Case Button als Funktion?
In meinem Beispiel wollte ich mit F4
den Code von dem Button überall verwenden.
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 615, 440, 297, 186)
$Button1 = GUICtrlCreateButton("Button1", 212, 108, 197, 81)
Dim $Form1_AccelTable[1][2] = [["{F4}", $Button1]] ; hier ist der Hotkey für die Taste F4
GUISetAccelerators($Form1_AccelTable)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Msgbox(4,"Hotkey","Aktiviert...")
EndSwitch
WEnd
Grüße
Ilse ![]()