mIRC Home    About    Download    Register    News    Help

Print Thread
R
Razr
Razr
R
Hi I wanted to add a right click menu in a custom toolbar button. Could someone please tell me how to do that? Thanks.

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
The easiest way to do it would be to add a popup named toolbar_<name of button>:

Code:
menu @toolbar_&lt;name of button&gt; {
  a
  ..b
  ...c: echo -a c
}


Then specify @toolbar_<name of button> as the [popfile|@] parameter in the /toolbar command.

R
Razr
Razr
R
Thank you very much hixxy smile

R
Razr
Razr
R
One more question, how do i get nicks in the menu list? $1 or $snicks don't work?

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
$snick($active,N)

Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Code:
 menu nicklist {
echo -a $iif($snicks,$v1,No nicks selected)
}
 

That's probably not exactly what you were wanting, but hopefully it's enough to get you going. If not, specify what it is you want done with the nick(s) and someone should be able to assist.

R
Razr
Razr
R
neither worked -.-

S
sbsb
sbsb
S
Try this:

Code:
 
menu @nicklist {
  .$submenu($nicklist($1))
}

alias nicklist {
  if ($snicks) {
    var %a = 1, %b = $gettok($snicks,0,44)
    while (%a &lt;= %b) {
      if ($1 == %a) return $+($gettok($snicks,%a,44),:,nicklist_cmd $gettok($snicks,%a,44))
      inc %a
    }
  }
}

alias nicklist_cmd { query $1 } 

R
Razr
Razr
R
thanks, thats what a friend and I ended up doing ^_^


Link Copied to Clipboard