When windows opens an input box, if you hit Ctrl+C the following is written to the clipboard:
<title of window>
--------------------
<window message>
--------------------
<buttons in box>
I think it'd be handy if mIRC does the same for boxes opened using $input()