﻿;===========================================================================================================================;
; 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
  .echo -ast xPoPuPs uploaded successfully!... go to the Menu Menubar ---> click on xPoPuPs or type /colorepopups 8,15☺ 7,15 http://vxd.altervista.org/VxD.htm 4,15✟1,15N14,15e8,15C7,15R4,15o1,0N1,15o14,15M4,15i7,15C8,15o1,15N4,15✞ 1,15 ☠ 1$4¢5®7i5þ8† di VxÐ
} 

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) $+ x0,4PoPuPs:colorepopups
  -
}


;===========================================================================================================================;
; colorepopup | VxÐ ~ http://vxd.altervista.org/VxD.htm | ✟NeCRoNoMiCoN✞ ☠  $¢®iþ†                                          ;
;===========================================================================================================================;


menu popups {
  $colorepopups($1-)
} 
alias colorepopups {
  var %MenuName colorepopups
  if ($xpopup(%MenuName).ismenu) { xpopup -d %MenuName }
  xpopup -c %MenuName %stile
  if (%stile == custom) { xpopup -b %menuName %cust }
  xpopup -p %MenuName %background %iconbox %checkbox %disablecheckbox %disabledselected %disabledtext %selecttext %selectbox %separator %menustext %selectedtext
  xpopup -x %MenuName +di
  xpopup -R %MenuName +a %chiaro
  menupath reset
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 1 Stile Menù
  xpop -a %MenuName $menupath(..) $chr(9) + 1 2 Office2003
  xpop -a %MenuName $menupath(..) $chr(9) + 2 2 Office2003rev
  xpop -a %MenuName $menupath(..) $chr(9) + 3 2 Office xP
  xpop -a %MenuName $menupath(..) $chr(9) + 4 3 ICY
  xpop -a %MenuName $menupath(..) $chr(9) + 5 3 ICYrev
  xpop -a %MenuName $menupath(..) $chr(9) + 6 4 Grade
  xpop -a %MenuName $menupath(..) $chr(9) + 7 4 Graderev
  xpop -a %MenuName $menupath(..) $chr(9) + 8 5 Normale
  xpop -a %MenuName $menupath(..) $chr(9) + 9 6 Vertical
  xpop -a %MenuName $menupath(..) $chr(9) + 10 6 Verticalrev
  xpop -a %MenuName $menupath(..) $chr(9) + 187 34 Personalizzato
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 0 -
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 7 Sfondo
  xpop -a %MenuName $menupath(..) $chr(9) + 11 8 †0,0 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 12 9 †1,1 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 13 10 †2,2 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 14 11 †3,3 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 15 12 †4,4 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 16 13 †5,5 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 17 14 †6,6 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 18 15 †7,7 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 19 16 †8,8 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 20 17 †9,9 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 21 18 †10,10 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 22 19 †11,11 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 23 20 †12,12 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 24 21 †13,13 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 25 22 †14,14 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 26 23 †15,15 •--------------------•†
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 0 -
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 24 Box Icona
  xpop -a %MenuName $menupath(..) $chr(9) + 27 8 †0,0 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 28 9 †1,1 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 29 10 †2,2 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 30 11 †3,3 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 31 12 †4,4 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 32 13 †5,5 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 33 14 †6,6 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 34 15 †7,7 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 35 16 †8,8 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 36 17 †9,9 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 37 18 †10,10 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 38 19 †11,11 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 39 20 †12,12 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 40 21 †13,13 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 41 22 †14,14 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 42 23 †15,15 •--------------------•† 
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 0 -
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 25 Box Controllo
  xpop -a %MenuName $menupath(..) $chr(9) + 43 8 †0,0 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 44 9 †1,1 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 45 10 †2,2 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 46 11 †3,3 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 47 12 †4,4 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 48 13 †5,5 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 49 14 †6,6 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 50 15 †7,7 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 51 16 †8,8 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 52 17 †9,9 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 53 18 †10,10 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 54 19 †11,11 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 55 20 †12,12 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 56 21 †13,13 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 57 22 †14,14 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 58 23 †15,15 •--------------------•† 
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 0 -
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 26 Box Controllo Disabilitato
  xpop -a %MenuName $menupath(..) $chr(9) + 59 8 †0,0 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 60 9 †1,1 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 61 10 †2,2 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 62 11 †3,3 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 63 12 †4,4 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 64 13 †5,5 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 65 14 †6,6 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 66 15 †7,7 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 67 16 †8,8 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 68 17 †9,9 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 69 18 †10,10 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 70 19 †11,11 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 71 20 †12,12 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 72 21 †13,13 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 73 22 †14,14 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 74 23 †15,15 •--------------------•† 
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 0 -
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 27 Box Selezionato Disabilitato
  xpop -a %MenuName $menupath(..) $chr(9) + 75 8 †0,0 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 76 9 †1,1 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 77 10 †2,2 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 78 11 †3,3 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 79 12 †4,4 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 80 13 †5,5 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 81 14 †6,6 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 82 15 †7,7 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 83 16 †8,8 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 84 17 †9,9 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 85 18 †10,10 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 86 19 †11,11 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 87 20 †12,12 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 88 21 †13,13 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 89 22 †14,14 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 90 23 †15,15 •--------------------•† 
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 0 -
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 28 Testo Disabilitato
  xpop -a %MenuName $menupath(..) $chr(9) + 91 8 †0,0 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 92 9 †1,1 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 93 10 †2,2 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 94 11 †3,3 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 95 12 †4,4 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 96 13 †5,5 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 97 14 †6,6 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 98 15 †7,7 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 99 16 †8,8 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 100 17 †9,9 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 101 18 †10,10 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 102 19 †11,11 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 103 20 †12,12 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 104 21 †13,13 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 105 22 †14,14 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 106 23 †15,15 •--------------------•† 
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 0 -
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 29 Testo Evidenziato
  xpop -a %MenuName $menupath(..) $chr(9) + 107 8 †0,0 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 108 9 †1,1 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 109 10 †2,2 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 110 11 †3,3 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 111 12 †4,4 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 112 13 †5,5 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 113 14 †6,6 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 114 15 †7,7 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 115 16 †8,8 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 116 17 †9,9 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 117 18 †10,10 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 118 19 †11,11 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 119 20 †12,12 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 120 21 †13,13 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 121 22 †14,14 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 122 23 †15,15 •--------------------•† 
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 0 -
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 30 Casella Selezionata
  xpop -a %MenuName $menupath(..) $chr(9) + 123 8 †0,0 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 124 9 †1,1 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 125 10 †2,2 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 126 11 †3,3 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 127 12 †4,4 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 128 13 †5,5 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 129 14 †6,6 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 130 15 †7,7 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 131 16 †8,8 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 132 17 †9,9 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 133 18 †10,10 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 134 19 †11,11 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 135 20 †12,12 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 136 21 †13,13 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 137 22 †14,14 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 138 23 †15,15 •--------------------•† 
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 0 -
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 31 Separatore
  xpop -a %MenuName $menupath(..) $chr(9) + 139 8 †0,0 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 140 9 †1,1 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 141 10 †2,2 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 142 11 †3,3 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 143 12 †4,4 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 144 13 †5,5 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 145 14 †6,6 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 146 15 †7,7 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 147 16 †8,8 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 148 17 †9,9 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 149 18 †10,10 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 150 19 †11,11 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 151 20 †12,12 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 152 21 †13,13 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 153 22 †14,14 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 154 23 †15,15 •--------------------•† 
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 0 -
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 32 Testo Menù
  xpop -a %MenuName $menupath(..) $chr(9) + 155 8 †0,0 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 156 9 †1,1 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 157 10 †2,2 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 158 11 †3,3 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 159 12 †4,4 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 160 13 †5,5 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 161 14 †6,6 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 162 15 †7,7 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 163 16 †8,8 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 164 17 †9,9 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 165 18 †10,10 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 166 19 †11,11 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 167 20 †12,12 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 168 21 †13,13 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 169 22 †14,14 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 170 23 †15,15 •--------------------•† 
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 0 -
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 33 Testo selezionato
  xpop -a %MenuName $menupath(..) $chr(9) + 171 8 †0,0 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 172 9 †1,1 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 173 10 †2,2 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 174 11 †3,3 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 175 12 †4,4 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 176 13 †5,5 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 177 14 †6,6 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 178 15 †7,7 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 179 16 †8,8 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 180 17 †9,9 •--------------------•†
  xpop -a %MenuName $menupath(..) $chr(9) + 181 18 †10,10 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 182 19 †11,11 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 183 20 †12,12 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 184 21 †13,13 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 185 22 †14,14 •--------------------•† 
  xpop -a %MenuName $menupath(..) $chr(9) + 186 23 †15,15 •--------------------•† 
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 0 -
  xpop -a %MenuName $menupath(.) $chr(9) +s 0 34 Trasparenza
  xpop -a %MenuName $menupath(..) $chr(9) + 188 8  0%
  xpop -a %MenuName $menupath(..) $chr(9) + 189 8 † 25%
  xpop -a %MenuName $menupath(..) $chr(9) + 190 8 † 50%
  xpop -a %MenuName $menupath(..) $chr(9) + 191 8 † 75%
  xpop -a %MenuName $menupath(..) $chr(9) + 192 8 † 100%

  hadd -m System MenuToXpopup $1-
  xpopup -s %MenuName + $mouse.dx $mouse.dy
} 

on *:signal:XPopup-colorepopups: {
  var %id $1
  tokenize 32 $hget(System,MenuToXpopup)
  if (%id == 1) { set %stile office2003 | .timer 1 0 xpopup_menu }
  elseif (%id == 2) { set %stile office2003rev | .timer 1 0 xpopup_menu }
  elseif (%id == 3) { set %stile officexp | .timer 1 0 xpopup_menu }
  elseif (%id == 4) { set %stile icy | .timer 1 0 xpopup_menu }
  elseif (%id == 5) { set %stile icyrev | .timer 1 0 xpopup_menu }
  elseif (%id == 6) { set %stile grade | .timer 1 0 xpopup_menu }
  elseif (%id == 7) { set %stile graderev | .timer 1 0 xpopup_menu }
  elseif (%id == 8) { set %stile normal | .timer 1 0 xpopup_menu }
  elseif (%id == 9) { set %stile vertical | .timer 1 0 xpopup_menu }
  elseif (%id == 10) { set %stile verticalrev | .timer 1 0 xpopup_menu }
  elseif (%id == 11) { set %background $color(0) | .timer 1 0 xpopup_menu }
  elseif (%id == 12) { set %background $color(1) | .timer 1 0 xpopup_menu }
  elseif (%id == 13) { set %background $color(2) | .timer 1 0 xpopup_menu }
  elseif (%id == 14) { set %background $color(3) | .timer 1 0 xpopup_menu }
  elseif (%id == 15) { set %background $color(4) | .timer 1 0 xpopup_menu }
  elseif (%id == 16) { set %background $color(5) | .timer 1 0 xpopup_menu }
  elseif (%id == 17) { set %background $color(6) | .timer 1 0 xpopup_menu }
  elseif (%id == 18) { set %background $color(7) | .timer 1 0 xpopup_menu }
  elseif (%id == 19) { set %background $color(8) | .timer 1 0 xpopup_menu }
  elseif (%id == 20) { set %background $color(9) | .timer 1 0 xpopup_menu }
  elseif (%id == 21) { set %background $color(10) | .timer 1 0 xpopup_menu }
  elseif (%id == 22) { set %background $color(11) | .timer 1 0 xpopup_menu }
  elseif (%id == 23) { set %background $color(12) | .timer 1 0 xpopup_menu }
  elseif (%id == 24) { set %background $color(13) | .timer 1 0 xpopup_menu }
  elseif (%id == 25) { set %background $color(14) | .timer 1 0 xpopup_menu }
  elseif (%id == 26) { set %background $color(15) | .timer 1 0 xpopup_menu }
  elseif (%id == 27) { set %iconbox $color(0) | .timer 1 0 xpopup_menu }
  elseif (%id == 28) { set %iconbox $color(1) | .timer 1 0 xpopup_menu }
  elseif (%id == 29) { set %iconbox $color(2) | .timer 1 0 xpopup_menu }
  elseif (%id == 30) { set %iconbox $color(3) | .timer 1 0 xpopup_menu }
  elseif (%id == 31) { set %iconbox $color(4) | .timer 1 0 xpopup_menu }
  elseif (%id == 32) { set %iconbox $color(5) | .timer 1 0 xpopup_menu }
  elseif (%id == 33) { set %iconbox $color(6) | .timer 1 0 xpopup_menu }
  elseif (%id == 34) { set %iconbox $color(7) | .timer 1 0 xpopup_menu }
  elseif (%id == 35) { set %iconbox $color(8) | .timer 1 0 xpopup_menu }
  elseif (%id == 36) { set %iconbox $color(9) | .timer 1 0 xpopup_menu }
  elseif (%id == 37) { set %iconbox $color(10) | .timer 1 0 xpopup_menu }
  elseif (%id == 38) { set %iconbox $color(11) | .timer 1 0 xpopup_menu }
  elseif (%id == 39) { set %iconbox $color(12) | .timer 1 0 xpopup_menu }
  elseif (%id == 40) { set %iconbox $color(13) | .timer 1 0 xpopup_menu }
  elseif (%id == 41) { set %iconbox $color(14) | .timer 1 0 xpopup_menu }
  elseif (%id == 42) { set %iconbox $color(15) | .timer 1 0 xpopup_menu }
  elseif (%id == 43) { set %checkbox $color(0) | .timer 1 0 xpopup_menu }
  elseif (%id == 44) { set %checkbox $color(1) | .timer 1 0 xpopup_menu }
  elseif (%id == 45) { set %checkbox $color(2) | .timer 1 0 xpopup_menu }
  elseif (%id == 46) { set %checkbox $color(3) | .timer 1 0 xpopup_menu }
  elseif (%id == 47) { set %checkbox $color(4) | .timer 1 0 xpopup_menu }
  elseif (%id == 48) { set %checkbox $color(5) | .timer 1 0 xpopup_menu }
  elseif (%id == 49) { set %checkbox $color(6) | .timer 1 0 xpopup_menu }
  elseif (%id == 50) { set %checkbox $color(7) | .timer 1 0 xpopup_menu }
  elseif (%id == 51) { set %checkbox $color(8) | .timer 1 0 xpopup_menu }
  elseif (%id == 52) { set %checkbox $color(9) | .timer 1 0 xpopup_menu }
  elseif (%id == 53) { set %checkbox $color(10) | .timer 1 0 xpopup_menu }
  elseif (%id == 54) { set %checkbox $color(11) | .timer 1 0 xpopup_menu }
  elseif (%id == 55) { set %checkbox $color(12) | .timer 1 0 xpopup_menu }
  elseif (%id == 56) { set %checkbox $color(13) | .timer 1 0 xpopup_menu }
  elseif (%id == 57) { set %checkbox $color(14) | .timer 1 0 xpopup_menu }
  elseif (%id == 58) { set %checkbox $color(15) | .timer 1 0 xpopup_menu }
  elseif (%id == 59) { set %disablecheckbox $color(0) | .timer 1 0 xpopup_menu }
  elseif (%id == 60) { set %disablecheckbox $color(1) | .timer 1 0 xpopup_menu }
  elseif (%id == 61) { set %disablecheckbox $color(2) | .timer 1 0 xpopup_menu }
  elseif (%id == 62) { set %disablecheckbox $color(3) | .timer 1 0 xpopup_menu }
  elseif (%id == 63) { set %disablecheckbox $color(4) | .timer 1 0 xpopup_menu }
  elseif (%id == 64) { set %disablecheckbox $color(5) | .timer 1 0 xpopup_menu }
  elseif (%id == 65) { set %disablecheckbox $color(6) | .timer 1 0 xpopup_menu }
  elseif (%id == 66) { set %disablecheckbox $color(7) | .timer 1 0 xpopup_menu }
  elseif (%id == 67) { set %disablecheckbox $color(8) | .timer 1 0 xpopup_menu }
  elseif (%id == 68) { set %disablecheckbox $color(9) | .timer 1 0 xpopup_menu }
  elseif (%id == 69) { set %disablecheckbox $color(10) | .timer 1 0 xpopup_menu }
  elseif (%id == 70) { set %disablecheckbox $color(11) | .timer 1 0 xpopup_menu }
  elseif (%id == 71) { set %disablecheckbox $color(12) | .timer 1 0 xpopup_menu }
  elseif (%id == 72) { set %disablecheckbox $color(13) | .timer 1 0 xpopup_menu }
  elseif (%id == 73) { set %disablecheckbox $color(14) | .timer 1 0 xpopup_menu }
  elseif (%id == 74) { set %disablecheckbox $color(15) | .timer 1 0 xpopup_menu }
  elseif (%id == 75) { set %disabledselected $color(0) | .timer 1 0 xpopup_menu }
  elseif (%id == 76) { set %disabledselected $color(1) | .timer 1 0 xpopup_menu }
  elseif (%id == 77) { set %disabledselected $color(2) | .timer 1 0 xpopup_menu }
  elseif (%id == 78) { set %disabledselected $color(3) | .timer 1 0 xpopup_menu }
  elseif (%id == 79) { set %disabledselected $color(4) | .timer 1 0 xpopup_menu }
  elseif (%id == 80) { set %disabledselected $color(5) | .timer 1 0 xpopup_menu }
  elseif (%id == 81) { set %disabledselected $color(6) | .timer 1 0 xpopup_menu }
  elseif (%id == 82) { set %disabledselected $color(7) | .timer 1 0 xpopup_menu }
  elseif (%id == 83) { set %disabledselected $color(8) | .timer 1 0 xpopup_menu }
  elseif (%id == 84) { set %disabledselected $color(9) | .timer 1 0 xpopup_menu }
  elseif (%id == 85) { set %disabledselected $color(10) | .timer 1 0 xpopup_menu }
  elseif (%id == 86) { set %disabledselected $color(11) | .timer 1 0 xpopup_menu }
  elseif (%id == 87) { set %disabledselected $color(12) | .timer 1 0 xpopup_menu }
  elseif (%id == 88) { set %disabledselected $color(13) | .timer 1 0 xpopup_menu }
  elseif (%id == 89) { set %disabledselected $color(14) | .timer 1 0 xpopup_menu }
  elseif (%id == 90) { set %disabledselected $color(15) | .timer 1 0 xpopup_menu }
  elseif (%id == 91) { set %disabledtext $color(0) | .timer 1 0 xpopup_menu }
  elseif (%id == 92) { set %disabledtext $color(1) | .timer 1 0 xpopup_menu }
  elseif (%id == 93) { set %disabledtext $color(2) | .timer 1 0 xpopup_menu }
  elseif (%id == 94) { set %disabledtext $color(3) | .timer 1 0 xpopup_menu }
  elseif (%id == 95) { set %disabledtext $color(4) | .timer 1 0 xpopup_menu }
  elseif (%id == 96) { set %disabledtext $color(5) | .timer 1 0 xpopup_menu }
  elseif (%id == 97) { set %disabledtext $color(6) | .timer 1 0 xpopup_menu }
  elseif (%id == 98) { set %disabledtext $color(7) | .timer 1 0 xpopup_menu }
  elseif (%id == 99) { set %disabledtext $color(8) | .timer 1 0 xpopup_menu }
  elseif (%id == 100) { set %disabledtext $color(9) | .timer 1 0 xpopup_menu }
  elseif (%id == 101) { set %disabledtext $color(10) | .timer 1 0 xpopup_menu }
  elseif (%id == 102) { set %disabledtext $color(11) | .timer 1 0 xpopup_menu }
  elseif (%id == 103) { set %disabledtext $color(12) | .timer 1 0 xpopup_menu }
  elseif (%id == 104) { set %disabledtext $color(13) | .timer 1 0 xpopup_menu }
  elseif (%id == 105) { set %disabledtext $color(14) | .timer 1 0 xpopup_menu }
  elseif (%id == 106) { set %disabledtext $color(15) | .timer 1 0 xpopup_menu }
  elseif (%id == 107) { set %selecttext $color(0) | .timer 1 0 xpopup_menu }
  elseif (%id == 108) { set %selecttext $color(1) | .timer 1 0 xpopup_menu }
  elseif (%id == 109) { set %selecttext $color(2) | .timer 1 0 xpopup_menu }
  elseif (%id == 110) { set %selecttext $color(3) | .timer 1 0 xpopup_menu }
  elseif (%id == 111) { set %selecttext $color(4) | .timer 1 0 xpopup_menu }
  elseif (%id == 112) { set %selecttext $color(5) | .timer 1 0 xpopup_menu }
  elseif (%id == 113) { set %selecttext $color(6) | .timer 1 0 xpopup_menu }
  elseif (%id == 114) { set %selecttext $color(7) | .timer 1 0 xpopup_menu }
  elseif (%id == 115) { set %selecttext $color(8) | .timer 1 0 xpopup_menu }
  elseif (%id == 116) { set %selecttext $color(9) | .timer 1 0 xpopup_menu }
  elseif (%id == 117) { set %selecttext $color(10) | .timer 1 0 xpopup_menu }
  elseif (%id == 118) { set %selecttext $color(11) | .timer 1 0 xpopup_menu }
  elseif (%id == 119) { set %selecttext $color(12) | .timer 1 0 xpopup_menu }
  elseif (%id == 120) { set %selecttext $color(13) | .timer 1 0 xpopup_menu }
  elseif (%id == 121) { set %selecttext $color(14) | .timer 1 0 xpopup_menu }
  elseif (%id == 122) { set %selecttext $color(15) | .timer 1 0 xpopup_menu }
  elseif (%id == 123) { set %selectbox $color(0) | .timer 1 0 xpopup_menu }
  elseif (%id == 124) { set %selectbox $color(1) | .timer 1 0 xpopup_menu }
  elseif (%id == 125) { set %selectbox $color(2) | .timer 1 0 xpopup_menu }
  elseif (%id == 126) { set %selectbox $color(3) | .timer 1 0 xpopup_menu }
  elseif (%id == 127) { set %selectbox $color(4) | .timer 1 0 xpopup_menu }
  elseif (%id == 128) { set %selectbox $color(5) | .timer 1 0 xpopup_menu }
  elseif (%id == 129) { set %selectbox $color(6) | .timer 1 0 xpopup_menu }
  elseif (%id == 130) { set %selectbox $color(7) | .timer 1 0 xpopup_menu }
  elseif (%id == 131) { set %selectbox $color(8) | .timer 1 0 xpopup_menu }
  elseif (%id == 132) { set %selectbox $color(9) | .timer 1 0 xpopup_menu }
  elseif (%id == 133) { set %selectbox $color(10) | .timer 1 0 xpopup_menu }
  elseif (%id == 134) { set %selectbox $color(11) | .timer 1 0 xpopup_menu }
  elseif (%id == 135) { set %selectbox $color(12) | .timer 1 0 xpopup_menu }
  elseif (%id == 136) { set %selectbox $color(13) | .timer 1 0 xpopup_menu }
  elseif (%id == 137) { set %selectbox $color(14) | .timer 1 0 xpopup_menu }
  elseif (%id == 138) { set %selectbox $color(15) | .timer 1 0 xpopup_menu }
  elseif (%id == 139) { set %separator $color(0) | .timer 1 0 xpopup_menu }
  elseif (%id == 140) { set %separator $color(1) | .timer 1 0 xpopup_menu }
  elseif (%id == 141) { set %separator $color(2) | .timer 1 0 xpopup_menu }
  elseif (%id == 142) { set %separator $color(3) | .timer 1 0 xpopup_menu }
  elseif (%id == 143) { set %separator $color(4) | .timer 1 0 xpopup_menu }
  elseif (%id == 144) { set %separator $color(5) | .timer 1 0 xpopup_menu }
  elseif (%id == 145) { set %separator $color(6) | .timer 1 0 xpopup_menu }
  elseif (%id == 146) { set %separator $color(7) | .timer 1 0 xpopup_menu }
  elseif (%id == 147) { set %separator $color(8) | .timer 1 0 xpopup_menu }
  elseif (%id == 148) { set %separator $color(9) | .timer 1 0 xpopup_menu }
  elseif (%id == 149) { set %separator $color(10) | .timer 1 0 xpopup_menu }
  elseif (%id == 150) { set %separator $color(11) | .timer 1 0 xpopup_menu }
  elseif (%id == 151) { set %separator $color(12) | .timer 1 0 xpopup_menu }
  elseif (%id == 152) { set %separator $color(13) | .timer 1 0 xpopup_menu }
  elseif (%id == 153) { set %separator $color(14) | .timer 1 0 xpopup_menu }
  elseif (%id == 154) { set %separator $color(15) | .timer 1 0 xpopup_menu }
  elseif (%id == 155) { set %menustext $color(0) | .timer 1 0 xpopup_menu }
  elseif (%id == 156) { set %menustext $color(1) | .timer 1 0 xpopup_menu }
  elseif (%id == 157) { set %menustext $color(2) | .timer 1 0 xpopup_menu }
  elseif (%id == 158) { set %menustext $color(3) | .timer 1 0 xpopup_menu }
  elseif (%id == 159) { set %menustext $color(4) | .timer 1 0 xpopup_menu }
  elseif (%id == 160) { set %menustext $color(5) | .timer 1 0 xpopup_menu }
  elseif (%id == 161) { set %menustext $color(6) | .timer 1 0 xpopup_menu }
  elseif (%id == 162) { set %menustext $color(7) | .timer 1 0 xpopup_menu }
  elseif (%id == 163) { set %menustext $color(8) | .timer 1 0 xpopup_menu }
  elseif (%id == 164) { set %menustext $color(9) | .timer 1 0 xpopup_menu }
  elseif (%id == 165) { set %menustext $color(10) | .timer 1 0 xpopup_menu }
  elseif (%id == 166) { set %menustext $color(11) | .timer 1 0 xpopup_menu }
  elseif (%id == 167) { set %menustext $color(12) | .timer 1 0 xpopup_menu }
  elseif (%id == 168) { set %menustext $color(13) | .timer 1 0 xpopup_menu }
  elseif (%id == 169) { set %menustext $color(14) | .timer 1 0 xpopup_menu }
  elseif (%id == 170) { set %menustext $color(15) | .timer 1 0 xpopup_menu }
  elseif (%id == 171) { set %selectedtext $color(0) | .timer 1 0 xpopup_menu }
  elseif (%id == 172) { set %selectedtext $color(1) | .timer 1 0 xpopup_menu }
  elseif (%id == 173) { set %selectedtext $color(2) | .timer 1 0 xpopup_menu }
  elseif (%id == 174) { set %selectedtext $color(3) | .timer 1 0 xpopup_menu }
  elseif (%id == 175) { set %selectedtext $color(4) | .timer 1 0 xpopup_menu }
  elseif (%id == 176) { set %selectedtext $color(5) | .timer 1 0 xpopup_menu }
  elseif (%id == 177) { set %selectedtext $color(6) | .timer 1 0 xpopup_menu }
  elseif (%id == 178) { set %selectedtext $color(7) | .timer 1 0 xpopup_menu }
  elseif (%id == 179) { set %selectedtext $color(8) | .timer 1 0 xpopup_menu }
  elseif (%id == 180) { set %selectedtext $color(9) | .timer 1 0 xpopup_menu }
  elseif (%id == 181) { set %selectedtext $color(10) | .timer 1 0 xpopup_menu }
  elseif (%id == 182) { set %selectedtext $color(11) | .timer 1 0 xpopup_menu }
  elseif (%id == 183) { set %selectedtext $color(12) | .timer 1 0 xpopup_menu }
  elseif (%id == 184) { set %selectedtext $color(13) | .timer 1 0 xpopup_menu }
  elseif (%id == 185) { set %selectedtext $color(14) | .timer 1 0 xpopup_menu }
  elseif (%id == 186) { set %selectedtext $color(15) | .timer 1 0 xpopup_menu }
  elseif (%id == 187) { set %stile custom | set %cust $sfile(*.bmp,Choose an image format .bmp,Ok) | xpopup -b xpopup_menu %cust | .timer 1 0 xpopup_menu }
  elseif (%id == 188) { set %chiaro 250 | .timer 1 0 xpopup_menu }
  elseif (%id == 189) { set %chiaro 230 | .timer 1 0 xpopup_menu }
  elseif (%id == 190) { set %chiaro 210 | .timer 1 0 xpopup_menu }
  elseif (%id == 191) { set %chiaro 180 | .timer 1 0 xpopup_menu }
  elseif (%id == 192) { set %chiaro 100 | .timer 1 0 xpopup_menu }
}
alias -l menupath {
  if ($1- == reset) { hadd -m System Menu 0 }
  elseif ($hget(System,Menu) != $null) {
    hadd System Menu $iif($len($1) > 1,$gettok($hget(System,Menu),$($+(1-,$calc($len($1) -1)),2),32)) $calc($gettok($hget(System,Menu),$len($1),32) +1) 0
    return $gettok($hget(System,Menu),1- $len($1),32)
  }
  return $false
}

alias -l shell alias shell returnex shell32.dll


