mIRC Home    About    Download    Register    News    Help

Print Thread
#239385 22/10/12 03:06 AM
Joined: Nov 2004
Posts: 822
J
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
J
Joined: Nov 2004
Posts: 822
Some kind of alias would be nice to involve Mark All Read.

Something like /mark(all|read) or /mar.

Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
If there was a clean way to iterate over all WINDOWS (of all types) this would be an easy:

alias markread var %i = 1 | while ($ALLWINDOW(%i)) { window -g0 $v1 | inc %i }

/scid -a markread

If we only get to have one or the other I would want the generalized identifier before a specialized command; that way we can [easily] write aliases like these in the future without having to ask for each one individually.

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
$window(*,%i) should iterate through all windows.

Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
Oh right, I forgot about this-- that simplifies things greatly for the above script.

alias markread var %i = 1 | while ($window(*,%i)) { window -g0 $v1 | inc %i }

D
Deega
Deega
D
alias markread var %i = 1 | while ($window(*,%i)) { window -g0 $qt($v1) | inc %i }


Link Copied to Clipboard