Terenz, Perhaps like this: #include <GUIConstantsEx.au3> #include <WinAPI.au3> Global $aInput[2] $hGUI = GUICreate("Test", 500, 500) $aInput[0] = GUICtrlCreateInput("Some text 1", 10, 10, 200, 20) $aInput[1] = GUICtrlCreateInput("Some text 2", 10, 40, 200, 20) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $GUI_EVENT_PRIMARYUP For $i = 0 To UBound($aInput) - 1 If _WinAPI_GetFocus() = GUICtrlGetHandle($aInput[$i]) Then GUICtrlSe