Guten Morgen zusammen,
ich habe folgendes Problem:
Wenn in in einer Anwendung Hotkeys verwende,
dann sollen diese Hotkeys "immer" und überall in Windows aktiv sein.
Solange wie das Hauptscript läuft.
Dies geht leider nur wenn das Fenster den Fokus hat.
Kann man das irgendwie ändern.
Beispiel F4 Hotkey
[autoit]
#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