mIRC Home    About    Download    Register    News    Help

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

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


What do you do at the end of the world? Are you busy? Will you save us?
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
$window(*,%i) should iterate through all windows.

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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 }


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Oct 2012
Posts: 164
D
Vogon poet
Offline
Vogon poet
D
Joined: Oct 2012
Posts: 164
alias markread var %i = 1 | while ($window(*,%i)) { window -g0 $qt($v1) | inc %i }


Link Copied to Clipboard