thanks it works very well

I also have this alias:

Code:
F1 /close -m $active | /F3


it closes the current query and then presses F3

but now F3 goes to channel visible windows, so can I make it go to the next query only and not channel or other window? and if there is no other query window, it should go to the next channel window

thanks