the first thing is impossible
about the second, u if u meant that u want to get the selected line in the nicklist, u can use $sline(window,N)
N is the number of the selected nick
u can use $snick too if the window is a channel