$editbox
From Scriptwiki
Returns the text in the editbox of the specified window.
$editbox(window,N)
If N = 1, returns the text in the second editbox in a channel window, if it's open.
Example
$editbox(Status Window)
This returns the current text in the editbox of the status window.