mIRC Home    About    Download    Register    News    Help

Print Thread
/window -s #35513 10/07/03 10:11 PM
Joined: Dec 2002
Posts: 339
D
Doomstars Offline OP
Fjord artisan
OP Offline
Fjord artisan
D
Joined: Dec 2002
Posts: 339
It would be nice to have a way to change a regular list box to a list box that sorts without having to close the window first and reopen it. -s has to be used when first creating the window I found out.

Also, I'd like it if it were possible to toggle on/off the auto-sorting feature WHILE the window is open.

I do have problems with it trying to sort stuff when new things are being /rlined in the window. Especially if it sorts before the /rline is finished rlining the last line that was alined.

And maybe a one time sort thing. That I can give a command to sort the listbox until done, and then automatically turns off the sorting feature.

Re: /window -s #35514 10/07/03 10:40 PM
Joined: Dec 2002
Posts: 774
T
theRat Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
You can sort the list with /filter?


Code:
//if ( khaled isgod ) echo yes | else echo no
Re: /window -s #35515 10/07/03 10:43 PM
Joined: Dec 2002
Posts: 339
D
Doomstars Offline OP
Fjord artisan
OP Offline
Fjord artisan
D
Joined: Dec 2002
Posts: 339
Nope. /filter is something entirely different.

Re: /window -s #35516 11/07/03 05:18 AM
Joined: Dec 2002
Posts: 17
N
nimper Offline
Pikka bird
Offline
Pikka bird
N
Joined: Dec 2002
Posts: 17
Actually /filter is the best way to do this. RTFM plz.

Re: /window -s #35517 11/07/03 06:00 AM
Joined: Dec 2002
Posts: 339
D
Doomstars Offline OP
Fjord artisan
OP Offline
Fjord artisan
D
Joined: Dec 2002
Posts: 339
Actually, no. /filter can't filter the same window to the same window. /filter filters from point A to point B. It can't work.

Re: /window -s #35518 11/07/03 09:33 AM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Somebody should read the help file...

Note: If the input and output are the same window/file, mIRC will process the request correctly.

/filter works fine, just include the -c switch to clear the original text and you're done.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: /window -s #35519 11/07/03 12:47 PM
Joined: Dec 2002
Posts: 339
D
Doomstars Offline OP
Fjord artisan
OP Offline
Fjord artisan
D
Joined: Dec 2002
Posts: 339
/filter doesn't sort. If you believe it does, tell me exactly why to type? I have one solo sidelist box window open. I want to sort them using only one command and without creating aliases. The same way /window -s would sort if done while opening the window. The name of the window is @Temp. /filter @Temp @Temp * doesn't do anything.

Re: /window -s #35520 11/07/03 01:56 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
You should really try to read the help file first.

//filter -wwct 1 32 @temp @temp
Does a normal sorting. 32 is the ascii value of space. Here, it is not important which number you use since you're sorting from the beginning of the line (hence the number 1).

//filter -wwca @temp @temp
Does a normal sorting too. As the help file says, the [alias] parameter is optional: if not specified, the default sorting method is the well-known ascending alphabetical sorting.

//filter -wwcte 1 32 @temp @temp
Does a reverse sorting.

And a minor detail, as you can see I didn't use any wildcard pattern; if not specified, /filter acts on all lines, the same as if you were using *.

Btw, these commands sort the text area of the side-listbox-window. To sort the side-listbox, include the l and L switches, ie //filter -wwlLct .....

Last edited by qwerty; 11/07/03 01:58 PM.

/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: /window -s #35521 11/07/03 02:58 PM
Joined: Dec 2002
Posts: 339
D
Doomstars Offline OP
Fjord artisan
OP Offline
Fjord artisan
D
Joined: Dec 2002
Posts: 339
I did read the help file, just didn't understand it. Thanks for the help, I appreciate it.

However, it would still be nice to have /window -s to toggle on/off the sorting for a window. And maybe $window(@Example).sort to tell if it has the sorting on or off. There may be a property for it already, but I'm looking at the help file now. And unless I misread or accidently skipped over something, I don't think there is a way. Oh well, the next version will probably have the smallest "bugs" fixed too.