Hallo,
ich würde gerne eine Funktion ausführen, wenn ENTER gedrückt wird und ein Inputfeld aktiv ist.
Beispiel: Wenn ENTER gedrückt wurde und Input1 aktiv ist - soll eine Funktion ausgeführt werden.
C
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
HotKeySet("{ENTER}","_test")
$Form1 = GUICreate("TESTFENSTER", 234, 100, 237, 163)
$Input1 = GUICtrlCreateInput("", 40, 24, 161, 21)
$Input2 = GUICtrlCreateInput("", 40, 64, 161, 21)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
func _test()
msgbox(0,"","TEST")
EndFunc
Alles anzeigen