#include <WinAPI.au3>
#include <GUIConstantsEx.au3>

$hGui = GUICreate("Устанавливает фокус ввода", 370, 80, -1, -1)
$Input1 = GUICtrlCreateInput("Текст 1", 12, 28, 121, 21)
$Input2 = GUICtrlCreateInput("Текст 2", 232, 28, 121, 21)
$Button1 = GUICtrlCreateButton("<", 148, 24, 27, 25)
$Button2 = GUICtrlCreateButton(">", 184, 24, 27, 25)
GUISetState(@SW_SHOW)

While 1
	Switch GUIGetMsg()
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Button1
			_WinAPI_SetFocus(GUICtrlGetHandle($Input1))
		Case $Button2
			_WinAPI_SetFocus(GUICtrlGetHandle($Input2))
	EndSwitch
WEnd