I already asked you very much to @flobse and are often in its channel, my code does not fit into their lifestyle... What I don't understand is why something happens to closing mirc to the menubar, I try to explain better ...
argv0 ---> has been resolved with your solution creating a popup menu identifier that invokes the alias in all Windows channel,status,menubar... Click to get the loading of my alias xpopup_menu.
in the first method code "menupath" by flobse which essentially invokes a dialog window
in my case it acts directly on the popups, where there is the fault
Okay your solution, as it is more suitable to my code...

alias
Code:
/vxdscript  .timer 1 0 /dll -u dcx.dll | .timer 2 0 xpopup_menu


identifier in the mirc editor section popups (in my popups script are handled by a third party file) then I can afford a menu that is called $vxdscript lol
Code:
menu Channel,Query,Status, menubar {
$vxdscript
}


Code:
 ;===========================================================================================================================;
; xMenu | VxÐ ~ http://vxd.altervista.org/VxD.htm | ✟NeCRoNoMiCoN✞ ☠  $¢®iþ† | caronte.ade@gmail.com                       ;
;===========================================================================================================================;

on 1:LOAD: {
  set %stile officexp
  set %chiaro 223
  set %bg 0
  set %background 0
  set %iconbox 0
  set %checkbox 367615
  set %disablecheckbox 255
  set %disabledselected 255
  set %disabledtext 255
  set %selecttext 16777215
  set %separator 255
  set %menustext 16777215
  set %selectbox 0
  set %selectedtext 255
  set %bk 255
} 

alias xpopup_menu {
  var %menu xpopup_menu 
  if ($xpopup(%menu).ismenu) { xpopup -d %menu } 
  if ( $xpopup(%menu).ismenu == $false ) {
    if (%stile == custom) {
      mpopup mirc 1
      mpopup mircbar 1
      xpopup -c %menu %stile
      xpopup -t mirc %stile
      xpopup -t mircbar %stile
      xpopup -x %menu +dpi
      xpopup -R %menu +r 1
      xpopup -R mircbar +a %chiaro
      xpopup -R mirc +a %chiaro
      xpopup -i mirc 0 $shell
      xpopup -i mircbar 0 $shell
      xpopupstyle mirc
      xpopupstyle mircbar
      xpopup -sm %menu + $mouse.dx $mouse.dy
      mtest 
      mtest2 
    }
    if (%stile != custom) {
      mpopup mirc 1
      mpopup mircbar 1
      xpopup -c %menu %stile
      xpopup -t mirc %stile
      xpopup -t mircbar %stile
      xpopup -x %menu +dpi
      xpopup -R %menu +r 1
      xpopup -R mircbar +a %chiaro
      xpopup -R mirc +a %chiaro
      if ($isalias(shell)) xpopup -i mirc 0 $shell
      if ($isalias(shell)) xpopup -i mircbar 0 $shell
      xpopupstyle mirc
      xpopupstyle mircbar
      xpopup -sm %menu + $mouse.dx $mouse.dy
    }
  }
}

alias xpopupstyle { 
  var %popups = $1
  if (%popups ) { 
    xpopup -l %popups 1 %background
    xpopup -l %popups 2 %iconbox
    xpopup -l %popups 3 %checkbox
    xpopup -l %popups 4 %disablecheckbox
    xpopup -l %popups 5 %disabledselected
    xpopup -l %popups 6 %disabledtext
    xpopup -l %popups 7 %selecttext
    xpopup -l %popups 8 %selectbox
    xpopup -l %popups 9 %separator
    xpopup -l %popups 10 %menustext
    xpopup -l %popups 11 %selectedtext 
  }
  else return
}

alias mtest {
  if (%stile == custom) {
    if ($isalias(shell)) xpopup -i mirc 0 $shell
    mpopup mirc 1
    xpopup -t mirc custom
    xpopup -b mirc $shortfn(%cust) 
    xpopupstyle mirc
  }
}

alias mtest2 {
  if (%stile == custom) {
    if ($isalias(shell)) xpopup -i mircbar 0 $shell
    mpopup mircbar 1
    xpopup -t mircbar custom
    xpopup -b mircbar $shortfn(%cust)
    xpopupstyle mircbar 
  }
}

on *:load:{
  if (%stile == custom) { 
    /mtest
    /mtest2
  }
  if (%stile != custom) {
    xpopup -d xpopup_menu
    if ($isalias(shell)) xpopup -i mirc 0 $shell
    if ($isalias(shell)) xpopup -i mircbar 0 $shell
    xpopup -t mirc %stile
    xpopup -t mircbar %stile
    xpopupstyle mirc
    xpopupstyle mircbar
  }
}

on *:start:{ 
  if (%stile == custom) { 
    /mtest
    /mtest2
  }
  if (%stile != custom) {
    xpopup_menu
    if ($isalias(shell)) xpopup -i mirc 0 $shell
    if ($isalias(shell)) xpopup -i mircbar 0 $shell
    xpopup -t mirc %stile
    xpopup -t mircbar %stile
    xpopupstyle mirc
    xpopupstyle mircbar
  }
}

menu menubar {
  1 $chr(11) $+ 0,4APPLICAZIONI:applicazioni
  -
  2 $chr(11) $+ 0,4AZIONI ✞ :azioni
  -
  3 $chr(11) $+ 0,4BOTSERVER:bot
  -
  4 $chr(11) $+ 0,4CHANSERVER:canale
  -
  5 $chr(11) $+ 0,4HOSTSERVER:host
  -
  6 $chr(11) $+ 0,4MEMOSERVER:memo
  -
  7 $chr(11) $+ 0,4NICKSERVER:nickservx
} 

Last edited by DEATHJ0KER; 12/06/12 07:54 PM.

A Creative & Interactive mIRC Scripting