Travis
Historical / Guest
I'm having trouble understanding what you want. I know it's possible though and once I understand it I can help.
If the mp3 dialog is open you dont want to see the command to open it? And you only want to see the command to open nicklist?
If the dialog is open wouldn't you want the command to say "Close" instead of Open? Or you want no command at all, only 'open nicklist'?
i'm not too sure but try this...
$iif(!$did(side.bar,10).visible,Open MP3):{
.timerscript -m 1 1 load.mp3.data
did -vf side.bar 10
did -h side.bar 3
}
$iif($did(side.bar,10).visible,Open Nicklist): did -vf side.bar 1,3
This removes the need for the variable as it checks to see whether or not one of the ids are hidden or not. Though i may have gotten the syntax wrong cause i don't have the mIRC help file and i'm just basing it off what i remember. But others may be able to correct it to get it working.
Edited Aug 3, 2008 11:33 PM by The Gate Keeper
Travis
Historical / Guest
I love popups.dll but this is a regular menu you have.
From my experience with popups.dll, you will have to put multiple commands in an alias anyways.
Warrior did it exactly as I would have.
/dll popups.dll AddItem menutitle end Open $iif(!$did(side.bar,10).visible,MP3,Nicklist) $cr side.bar.menu
alias side.bar.menu {
if ($did(side.bar,10)) { .timerscript -m 1 1 load.mp3.data | did -vf side.bar 10 | did -h side.bar 3 }
else { did -vf side.bar 1,3 }
}
I'm still not very clear on what you want. You want it to only say mp3 or nicklist? You want it to only show Open Nicklist if Open MP3 has already been selected. And you do not want it to change to 'Close MP3' with the 'Open Nicklist' only appearing when mp3 is open?