Horstl, I already know that $window can't be overridden by custom aliases (though /window can). That was a response to your request that they "
try this"... advice containing those two words often isn't particularly useful advice. What was the point of your question?
To be clear and concise:
echo -s window -g0 $qt($window(*,%i))
Would result in a correct return value, regardless of a "custom alias", providing %i evaluates to a numeric value >= 0 and <= $window(*,0).
Also if this will help you try this:
alias markread {
var %i = 1
while ($window(*,%i).wid) {
window -g0 @ $+ $v1
inc %i
}
}
alias f2 scon -a markread
And for closing all the query windows just type :
/closemsgThankyou for teaching me something undocumented. How did you come about learning this?