mIRC Homepage
Posted By: dominic_eddy channel menu - 05/08/12 07:31 PM
well, i want to make a script where, when you right click on my channel a menu will pop up and you'll be open a dialog box by clicking on the menu popup option. Although... i only want the menu for my dialog box, to appear when i right click on my channel, i don't want it to appear on EVERY channel, how do i make it so menus only appear on specified channels?
Posted By: Wims Re: channel menu - 05/08/12 07:39 PM
Use $iif to make a condition:
Code:
menu channel {
iif($chan == #yourchannel,my popup) : echo -a my popup!
}
Posted By: dominic_eddy Re: channel menu - 05/08/12 08:02 PM
Originally Posted By: Wims
Use $iif to make a condition:
Code:
menu channel {
iif($chan == #yourchannel,my popup) : echo -a my popup!
}

didn't work, in the menu it just appeared with the 'iif($chan == #yourchannel,my popup) ' (i changed the # to my channel dw, but still just popped up with it.
Posted By: sparta Re: channel menu - 05/08/12 08:10 PM
Where did you put the line? Not popups ?
Posted By: Wims Re: channel menu - 05/08/12 08:15 PM
I posted my previous message from my phone, somehow i didn't notice it was missing a $ on $iif, use:
Code:
menu channel {
$iif($chan == #yourchannel,my popup) : echo -a my popup!
}
Posted By: dominic_eddy Re: channel menu - 05/08/12 09:21 PM
Originally Posted By: Wims
I posted my previous message from my phone, somehow i didn't notice it was missing a $ on $iif, use:


wooooorked! TY!
© mIRC Discussion Forums