mIRC Home    About    Download    Register    News    Help

Print Thread
#63062 06/12/03 11:41 AM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
$iif(X ison $chan,$style(2)) X Commands

not i neet to get menu show if X is in the channel, and if x is gone dont show the menu..

#63063 06/12/03 01:00 PM
Joined: Sep 2003
Posts: 156
B
Vogon poet
Offline
Vogon poet
B
Joined: Sep 2003
Posts: 156
$iif(X ison $chan,X):Commands

#63064 06/12/03 01:45 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
but then the menu disappers, it shold just be disabled grey

#63065 06/12/03 02:30 PM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
If you only want the menu to appear when X ison the channel, i think the use of on active and a group will be best:
Code:
 
on *:active:#:{
  if (X ison $active) && ($group(#Xpopup) == off) .enable #Xpopup
  if (X !ison $active) && ($group(#Xpopup) == on) .disable #Xpopup
}
#Xpopup off
menu channel {
  example:/echo -a example
}
#Xpopup end
 

Something along those lines maybe.
Might also want to add a check to make sure you are on the right network too.

#63066 06/12/03 02:34 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
I have solved the problem with this clean code:

$iif(X !ison $chan,$style(2)) X Commands

#63067 06/12/03 02:51 PM
Joined: Sep 2003
Posts: 156
B
Vogon poet
Offline
Vogon poet
B
Joined: Sep 2003
Posts: 156
=) funny


Link Copied to Clipboard