Best way to do it would be to, use a @window, with -s flag. i.e.

/window -s @window
//var %i = $findfile($mircdir,*,*,0,aline @window $1-)

Then drag the data out with; $line(@window,N) where N is the line number.

Eamonn.