mIRC Home    About    Download    Register    News    Help

Print Thread
#211803 01/05/09 10:25 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I working on a channel central, and i looking for ideas, how would you display custom modes. in a separate dialog, or in the same dialog as the other modes? if in the same dialog, any idea on how make it look good? the problem as i see it is that i need to be able to get the information for the modes that are available for the server i connect to, and since some networks don't support more then the default modes (tnimklps) it would look strange if you have check boxes for 20 more modes in the dialog. The value i working with is stored in a %variable, and in the format

%variable owghraAORTVSxNCWqBzvdHG

Last edited by sparta; 01/05/09 10:36 AM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #211804 01/05/09 03:42 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Why not go with a list box that uses the check option?

As to which modes are supported, I believe, but am unable to confirm at the moment, raw 005 contains this, and much more, information.

P.S.: This really should've been put in the Scripts & Pop-Ups section.

RusselB #211811 01/05/09 08:18 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Since i don't ask for help to make the dialog i posted it here smile it's more like a general question wink and yes, i was thinking of the list box that uses the check option, but im not shure on how make them, but i guess i figure it out.. smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #211815 01/05/09 09:20 PM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
This is still a script related question. Variables have nothing to do with an IRC client "in general".


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
sparta #211824 02/05/09 01:05 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
In your dialog setup, remember the check option for the listbox.
Then fill the listbox like you normally would, possibly using /did -a
Note that you will need a bigger listbox when using the check option than if you weren't, as the lines in the listbox become the height of the checkbox. I have a script where I was trying to use both checked and unchecked lists with the two corresponding, but the alignment of the text went off fairly quickly (definetely noticable after about 5 items).

Remember that the check option for the listbox only allows for two states as opposed to the checkbox which can be set as a 3state item.


Link Copied to Clipboard