I'm kind of lost on how to code this; when the cursor focus in the input box or textbox and user press Enter, it calls a function. Only guess that I can think of is:   While GUICtrlSetState($searchinput, $GUI_FOCUS) if send("{ENTER}") then testfunction() endif WEnd