How can I send text to Edit Text control?

Hi,

How can I send text to an Edit Text control (or clear it) in one of the kodi xml windows/dialogs?

My purpose is to catch the Keyboard dialog and send him the text for searching.
(Assuming that I know their ID’s)

Thanks.