Die Lösung Ist:
AutoIt
Func HotKeyPressed()
Switch @HotKeyPressed ; The last hotkey pressed.
Case "{ENTER}"
if WinActive("Form1") Then
Else
HotKeySet("{ENTER}")
Send("{ENTER}")
HotKeySet("{ENTER}", "HotKeyPressed")
Endif
EndSwitch
EndFunc ;==>HotKeyPressed
Alles anzeigen
Und damit ist dieser Beitrag geschlossen