mIRC Homepage


Posted By: Mpot

Groups - 16/09/08 01:57 AM

So I've been out of the game for several months now, and I've gone and forgotten how to use groups and I can't seem to find the help file. I remember something like

#asdf on
#asdf end

But I'm not sure if that's correct. Furthermore, is there an identifier to indicate whether or not a group is turned on or off?

Posted By: RoCk

Re: Groups - 16/09/08 02:14 AM

Your example is correct.

/enable #asdf
/disable #asdf
//echo -a $group(#asdf)

/help groups
Posted By: RusselB

Re: Groups - 16/09/08 02:15 AM

That is correct. As to the identifier, you're looking for $group(#group_name) or $group(N).status

You should be able to call up the help file from inside mIRC, using /help

Posted By: Mpot

Re: Groups - 16/09/08 06:51 PM

Thanks for the refresher guys. That was exactly what I've needed and I found the help file as well.
Posted By: xyzzy

Re: Groups - 22/01/09 06:11 AM

menu channel {
.On:./enable #prot
.Off:./disable #prot
i see 'Protection' in channel right click but want make it 'Protection Off' when #prot is already enabled so ill click it and disable #prot confused i just want to make it easy to turn on/off.
Posted By: Horstl

Re: Groups - 22/01/09 06:32 AM

Use $iif conditions to build a switch.
In addition, you could show the current group status per $group(Name).status, or indicate the current group status with $iif and $style, or change the menu text ("name the switch") according to the group status...
Three examples:

menu channel {
  .Toggle Protection : $iif(($group(#prot).status == on),disable,enable) #prot

menu channel { 
  Protection $+([,$group(#prot).status,]) : $iif(($group(#prot).status == on),disable,enable) #prot

menu channel {
  $iif(($group(#prot).status == on),$style(1)) Protection 
  .$iif(($group(#prot).status == on),disable,enable) Protection : $iif($group(#prot).status == on,.disable,.enable) #prot
Posted By: xyzzy

Re: Groups - 22/01/09 07:27 AM

Thankss Horstl i just work on it a bit and get what i needed from ur code this part what i were wanted cheers
menu channel {
.$iif(($group(#flood).status == on),disable,enable) Protection : $iif($group(#flood).status == on,.disable,.enable) #flood
© 2021 mIRC Discussion Forums