Advertisement
makimaki

Shitty Dialog Buzzen DCX Based

Jun 21st, 2010
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 5.26 KB | None | 0 0
  1. ;access lister
  2. alias dAccess { if ($active == Status Window) { halt } | if ($dialog(dAccess)) { dialog -x dAccess } | dialog -m dAccess dAccess_table }
  3.  
  4. dialog dAccess_table {
  5.   title "Buzzen Access Lister"
  6.   size -1 -1 620 350
  7. }
  8. on *:dialog:dAccess_table:init:0:{
  9.   dcx Mark $dname dAccess_cb
  10.   xdialog -b $dname +ty
  11.   xdialog -c $dname 4 listview 5 5 475 275 report singlesel fullrow nolabelwrap tooltip tabstop grid transparent showsel
  12.   xdid -t $dname 4 +l 0 80 Level $chr(9) +l 0 120 User $chr(9) +l 0 188 Address Mask
  13.   xdid -w $dname 4 +n 0 $Mircdiricons/owner.ico
  14.   xdid -w $dname 4 +n 0 $Mircdiricons/host.ico
  15.   xdid -w $dname 4 +n 0 $Mircdiricons/deny.ico
  16.   xdialog -c $dname 11 button 497 20 100 25
  17.   xdid -t $dname 11 Owner
  18.   xdialog -c $dname 12 button 497 50 100 25
  19.   xdid -t $dname 12 Host
  20.   xdialog -c $dname 13 button 497 80 100 25
  21.   xdid -t $dname 13 Voice
  22.   xdialog -c $dname 14 button 497 110 100 25
  23.   xdid -t $dname 14 Deny
  24.   xdialog -c $dname 21 text 497 1 100 20 center
  25.   xdid -t $dname 21 Clear All
  26.   xdialog -c $dname 22 text 497 140 100 20 center
  27.   xdid -t $dname 22 Add Access
  28.   xdialog -c $dname 23 button 497 160 100 25
  29.   xdid -t $dname 23 Owner
  30.   xdialog -c $dname 24 button 497 190 100 25
  31.   xdid -t $dname 24 Host
  32.   xdialog -c $dname 25 button 497 220 100 25
  33.   xdid -t $dname 25 Voice
  34.   xdialog -c $dname 26 button 497 245 100 25
  35.   xdid -t $dname 26 Deny
  36.   xdialog -c $dname 30 button 497 275 100 25
  37.   xdid -t $dname 30 Save Access
  38.   xdialog -c $dname 1 button 497 310 100 25
  39.   xdid -w $dname 1 +n 0 $Mircdiricons/helpop.ico
  40.   xdid -t $dname 1 Access Self
  41.   //access $active List
  42.  
  43. }
  44.  
  45. alias tiac { /access $chan List }
  46. ;// Callback alias for dAccess
  47. alias dAccess_cb {
  48.   if (mouse isin $2) { halt }
  49.   elseif  ($2 == sclick) && ($3 == 11) {
  50.     access # clear owner
  51.     xdid -r dAccess_table 4
  52.     $tiac
  53.   }
  54.   elseif   ($2 == sclick) && ($3 == 12) {
  55.     access # clear host
  56.     xdid -r dAccess_table 4
  57.     $tiac
  58.   }
  59.   elseif  ($2 == sclick) && ($3 == 13) {
  60.     access # clear voice
  61.     xdid -r dAccess_table 4
  62.     $tiac
  63.   }
  64.   elseif  ($2 == sclick) && ($3 == 14) {
  65.     access # clear Deny
  66.     xdid -r dAccess_table 4
  67.     $tiac
  68.   }
  69.   elseif  ($2 == sclick) && ($3 == 23) {
  70.     var %Mask = $Input( $Gettok(Add Owner Access, -1, 32) $+ ?, qe, $Lang(al_add_title), *!*someonesaddresshere)
  71.     access $chan ADD OWNER %Mask
  72.     xdid -r dAccess_table 4
  73.     $tiac
  74.   }
  75.   elseif  ($2 == sclick) && ($3 == 24) {
  76.     var %Mask = $Input( $Gettok(Add Host Access, -1, 32) $+ ?, qe, $Lang(al_add_title), *!*someonesaddresshere)
  77.     access $chan ADD HOST %Mask
  78.     xdid -r dAccess_table 4
  79.     $tiac
  80.   }
  81.   elseif  ($2 == sclick) && ($3 == 25) {
  82.     var %Mask = $Input( $Gettok(Add Voice Access, -1, 32) $+ ?, qe, $Lang(al_add_title), *!*someonesaddresshere)
  83.     access $chan ADD Voice %Mask
  84.     xdid -r dAccess_table 4
  85.     $tiac
  86.   }
  87.   elseif  ($2 == sclick) && ($3 == 25) {
  88.     var %Mask = $Input( $Gettok(Add Deny Access, -1, 32) $+ ?, qe, $Lang(al_add_title), *!*someonesaddresshere)
  89.     access $chan ADD Deny %Mask
  90.     xdid -r dAccess_table 4
  91.     $tiac
  92.   }
  93.   elseif  ($2 == sclick) && ($3 == 30) {
  94.     var %i = 0
  95.     while (%i < $nick(#,0)) {
  96.       var %i = $calc(%i + 1)
  97.       writeini -n access.ini Access $+ $chan $address($nick(#,%i),1) $nick(#,%i) $remove($replace($chan,!,$chr(32),\b,$chr(32),$chr(45),$chr(32)),$chr(37),$chr(35)))
  98.     }
  99.     echo -a Access List Saved Access for $remove($replace($chan,!,$chr(32),\b,$chr(32),$chr(45),$chr(32)),$chr(37),$chr(35)))
  100.   }
  101.   elseif  ($2 == sclick) && ($3 == 1) {
  102.  
  103.     access # Add OWNER $Ial($me).addr  | access # ADD HOST $Ial($me).addr
  104.     xdid -r dAccess_table 4
  105.     $tiac
  106.   }
  107.   elseif ($2 == RCLICK) && ($3 == 4) && ($4-) {
  108.     var %Menu = dAcc , %i = 0
  109.     if ($xpopup(%Menu).ismenu) xpopup -d %Menu
  110.     xpopup -c %Menu verticalrev
  111.     xpopup -p %Menu $Rgb(255, 255, 255) $Rgb(119, 136, 153) $Rgb(112, 128, 144) $Rgb(119, 136, 153) $Rgb(119, 136, 153)  $Rgb(248, 248, 255)
  112.  
  113.     xpop -a %Menu 0 $Chr(9) + 1 0 Access Address : $address($nick(#,%i),1))  $xdid(dAccess_table, 4, 3).seltext
  114.     xpop -a %Menu 0 $Chr(9) + 2 0 -
  115.     xpop -a %Menu 0 $Chr(9) + 3 0 Clear All Selected Access Entry
  116.     xpop -a %Menu 0 $Chr(9) + 4 0 Clipboad Whole Access Entry
  117.     xpop -a %Menu 0 $Chr(9) + 5 0 -
  118.     xpop -a %Menu 0 $Chr(9) + 6 0 Refresh Access List
  119.  
  120.     xpopup -s %Menu + $Mouse.dx $Mouse.dy
  121.   }
  122. }
  123.  
  124. raw 804:*: {
  125.   var %Ial_Match = $Iif($Ial(*!* $+ $4).nick, $Ifmatch, Unknown),  %Icon = $Iif($3 == OWNER, 1, $Iif($3 == HOST, 2, $Iif($3 == DENY, 3, 0))),
  126.   xdid -a dAccess_table 4 0 0 + 0 0 0 0 $rgb(170,213,255) $rgb(0,255,255) $3 $chr(9) + 0 -1 $rgb(10,210,250) $rgb(255,0,255) $buzz.decode(%Ial_Match) $chr(9) + 0 -1 $rgb(120,255,210) $rgb(255,255,0) $4    
  127. }
  128.  
  129. raw 805:*: { halt }
  130.  
  131. on *:SIGNAL:Xpopup-*: {
  132.   var %D = dAccess_table, %Menu = $Gettok($Signal, 2-, 45), %col = $xdid(%D, 4, 1).seltext, %clo = $xdid(%d, 4, 3), %i = 0
  133.   if (%menu == dAcc) {
  134.     var %chan = Access $active list
  135.     if ($1 == 3) {
  136.       access $active Delete %col $xdid(dAccess_table, 4, 3).seltext  
  137.     }
  138.     xdid -r dAccess_table 4
  139.     %chan
  140.  
  141.     if ($1 == 4) {
  142.       Clipboard %col $ial($nick).addr
  143.  
  144.  
  145.       elseif ($1 == 6)
  146.       xdid %d 4
  147.       %chan
  148.     }
  149.   }
  150. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement