I want to run a command everytime the $Input1 changes
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListBoxConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ###
$Form1 = GUICreate("Form1", 622, 427, 193, 125)
$List1 = GUICtrlCreateList("", 24, 40, 257, 305)
$List2 = GUICtrlCreateList("", 304, 40, 249, 305)
$Input1 = GUICtrlCreateInput("", 24, 384, 177, 21)
$Button1 = GUICtrlCreateButton("Search", 216, 384, 97, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Input1
GUICtrlSetData($List1, GUICtrlRead($Input1))
EndSwitch
WEnd