I'm not sure I get this right. Do you want to display the next query in the list for every query window being activated?
For example, if you open two queries,
/query a and
/query b, do you want it to display 'b' everytime you activate 'a'?
I don't know what's the point of it, but here's some code:
On *:active:?:{
var %i = 1
while $query(%i) {
if $ifmatch == $active { break }
inc %i
}
if $query($calc(%i +1)) {
echo -a The next query in turn is $ifmatch
}
else {
echo -a This is the last query in list.
}
}