mIRC Home    About    Download    Register    News    Help

Print Thread
#186568 23/09/07 09:24 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
if i have a custom window open, then i want to be able to create a menu to that window, thats no problem, now when i right click in the window i get a menu, my problem are that when i klick the menu if the menu only have a serten word in it, then i don't want the menu enabled, i want to disable it, any way to do that ?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #186569 23/09/07 09:26 PM
Joined: Jan 2006
Posts: 111
N
Vogon poet
Offline
Vogon poet
N
Joined: Jan 2006
Posts: 111
/help $style

noMen #186577 23/09/07 09:40 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
That solved my problem, didn't know it was named that way in the help smile now to next problem, i have the same cusom window, and i aline text to it, now when i right click in the window the menu show even due i havent highlighted any line in the window, any way to stop this from happen ?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #186579 23/09/07 09:49 PM
Joined: Jan 2006
Posts: 111
N
Vogon poet
Offline
Vogon poet
N
Joined: Jan 2006
Posts: 111
Try to reference $$1- instead of $1

Or something like:

.$iif($$1, Menu item) : command

Last edited by noMen; 23/09/07 09:50 PM.
noMen #186584 23/09/07 10:09 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
i dont use $1 at all, i use
Code:
 $iif($wildtok($sline(@win,1), *, 1-, 33) == test.,$style(2)) Testing {
 command here


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #186601 24/09/07 05:44 AM
Joined: Jan 2006
Posts: 111
N
Vogon poet
Offline
Vogon poet
N
Joined: Jan 2006
Posts: 111
Code:
  $iif($wildtok($sline(@win,1), *, 1-, 33) == test., Testing) : {   
  command here


Link Copied to Clipboard