we all know that an editbox has a history. you can use up or down to browse through things that were previously typed, but why not have an identifier that can return these inputted lines of text? $EHistory(#mIRC,1,1)

$EHistory(window,line,x)
x defines which edit box, if left blank, it assumes the main, else it assumes its the second edit box in a channel.