Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.40 KB | None | 0 0
  1. dialog MCT {
  2.   title "Max's Color Text v2.5"
  3.   size -1 -1 112 116
  4.   option dbu
  5.   button "Okay", 4, 43 102 26 9, ok
  6.   box "Text Properties", 5, 10 27 93 36
  7.   edit "", 6, 56 37 30 10
  8.   text "Color Code", 18, 28 38 28 6
  9.   box "Turn Script On/Off", 22, 10 2 93 23
  10.   radio "On", 23, 29 11 19 10, group
  11.   radio "Off", 24, 61 11 20 10
  12.   check "Bold", 29, 28 50 20 7, left
  13.   check "Underline", 30, 53 50 32 7, left
  14. }
  15.  
  16. on *:DIALOG:MCT:init:0:{
  17.   did -c $dname $iif(%mct.on,23,$iif(%mct.off,24,))
  18.   $iif(%text.color,did -a $dname 6 %text.color)
  19.   if (%mctbold = ) { did -c $dname 29 }
  20.   if (%mctunderline = ) { did -c $dname 30 }
  21. }
  22. on *:DIALOG:MCT:sclick:*:{
  23.   if ($did == 4) {
  24.     if ($did(MCT,29).state = 1) { set %mctbold  } | else { unset %mctbold }
  25.     if ($did(MCT,30).state = 1) { set %mctunderline  } | else { unset %mctunderline }
  26.     set %text.color $did(MCT,6)
  27.   }
  28.   if ($did == 23) { enable #mctext | unset %mct.* | set %mct.on on }
  29.   if ($did == 24) { disable #mctext | unset %mct.* | set %mct.off off }
  30. }  
  31.  
  32. #mctext on
  33.  
  34. on *:input:*:if (!$regex($1-,^\/) && !$regex($1-,^\!) && !$regex($1-,^\-) && !$regex($1-,^\?) && !$regex($1-,^lol\S\sstats) && !$inpaste) { msg $active %mctunderline $+ %mctbold $+  $+ %text.color $+ $1- | halt }
  35.  
  36. #mctext end
  37.  
  38. menu * {
  39.   .Max's Color Text Settings: { dialog -m MCT MCT }
  40. }
  41. alias ctext {
  42.   $iif($dialog(MCT),dialog -c MCT MCT) dialog -m MCT MCT
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement