mIRC Home    About    Download    Register    News    Help

Print Thread
#240365 25/01/13 12:34 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 have a custom window. And i want to hide one line from the menu (right click), the line looks like:
Code:
aline @friends $str($chr(160),3) Nick $+ $str($chr(9),2) $+ Note $+ $str($chr(9),3) $+ Online

And im not able to hide it, somone that know how to do it? I created the window with

window -lCk0 @friends 50 50 700 376 Verdana 11

Have been trying to use $sline(@friends ,1) without any luck.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #240367 25/01/13 04:52 PM
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
It's not clear to me what you are trying to do here. Can you explain in more detail?

5618 #240368 25/01/13 05:28 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
This line will show up in the menu/rightclick for the window @friends.

$str($chr(160),3) Nick $+ $str($chr(9),2) $+ Note $+ $str($chr(9),3) $+ Online

But i want to hide the line from menu, I dont want it to be triggered even if somone click on it, and the best way is to hide it from the menu. The line looks like:

Nick Note Online

It dont show up here exactly as it does in the custom window, but i hope you get the idea.

Edit

Test this
Code:
alias example {
  if (!$window(@friends)) { window -lCk0 @friends 50 50 700 376 Verdana 11 }
  aline @friends $str($chr(160),3) Nick $+ $str($chr(9),2) $+ Note $+ $str($chr(9),3) $+ Online
}

menu @friends {
 Here i want to hide/disable the line: { $sline(@friends ,1) }
}

So it not trigger when right click on it, but still i want to be able to show the users added to the list, will use remove and some things like that.

Last edited by sparta; 25/01/13 05:50 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #240369 25/01/13 07:20 PM
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Are you saying you want to grey out the menu item? "Hide" is a terrible word choice for that. To disable it, use $style(2) before the entry.

Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Best would be if it dont show at all if somone highlight that line. And im not able to get a match with the line due $chr(9) and $chr(160)


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #240371 25/01/13 08:40 PM
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Wrap the entire entry in $iif() and use the proper comparison to exclude that specific line


Link Copied to Clipboard