mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2006
Posts: 9
R
Razr Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2006
Posts: 9
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,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
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.

Joined: Jul 2006
Posts: 9
R
Razr Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2006
Posts: 9
Thank you very much hixxy smile

Joined: Jul 2006
Posts: 9
R
Razr Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2006
Posts: 9
One more question, how do i get nicks in the menu list? $1 or $snicks don't work?

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

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

Joined: Jul 2006
Posts: 9
R
Razr Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2006
Posts: 9
neither worked -.-

Joined: Jul 2006
Posts: 7
S
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
S
Joined: Jul 2006
Posts: 7
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 } 

Joined: Jul 2006
Posts: 9
R
Razr Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2006
Posts: 9
thanks, thats what a friend and I ended up doing ^_^


Link Copied to Clipboard