Top

Text Color 1.0.1


mIRC Code
+ 2 likes
Please Register to submit score.
Bookmark and Share
Average Score  3.8 (of 5 scores)
Date Added  Aug 16, 2008
Last Updated  Nov 23, 2008
Tags  44  bot  color  coloring  http  jonesy  jonesy44  left  letter  letters  mirc  numeric  right  script  style  text  var  variables  www 

Description

Latest script.. wanted a text color'er that worked real well and had plenty of options and a dialog so here tis. To begin this script; paste it into your remotes (ALT+R) the type
Code:
/colors

to initiate it. Select you style, pick colors (background are allowed)

MDX
If you have mdx, even better! You will be able to experience a preview of the text coloring. Please read the first line of the script as it is instructions with MDX.
If you do not yet have MDX on your computer; it can be found, as always on my website at: http://wfs.myartsonline.com/downloads

UPDATES TO BE RELEASED
- White text support (will be placed as numeric 16 instead of it's usual 0 on the mIRC palette
- New Color Styles such as coloring the first letter only
- Stops the script working on selected server/channels
- Text decoration support such as bold and underline
- Warnings before you post in restricted channels (which will also be able to be diabled in the main dialog


SCREENSHOTS




This script is nowhere near what it will finally be; but i'd really appreciate some beta testers. thanks!

Grab the Code

;; Written by Jonesy44
;; Version 1.0.1
;; First Release: 17th August, 2008
;; IF YOU HAVE MDX.DLL ON YOUR COMPUTER LINK IT HERE, ELSE LEAVE THIS PART OF THE SCRIPT
alias mdx {
  return $shortfn(mdx.dll)
}
on *:DIALOG:*:init:*: {
  dll $mdx SetMircVersion $version
  dll $mdx MarkDialog $dname
}
;; MDX END ==============================================================================
 
 
alias colors {
  dialog $iif($dialog(colors),-v,-m) colors colors
}
dialog colors {
  title "Colors Select"
  size -1 -1 100 50
  option dbu
  radio "All Text Colored", 100, 2 2 54 10
  radio "Start of Each Word", 101, 2 12 54 10
  radio "None", 102, 2 22 54 10
  box "", 103, 60 -10 2 45
  box "", 104, 0 31 100 5
  text "Color Code", 200, 65 3 30 10, center
  edit %colors.sel, 201, 65 11 30 10
  text "", 202, 65 23 30 7, center
  button "Confirm", 300, 2 36 58 13
  button "Cancel", 301, 62 36 36 13
}
on *:DIALOG:colors:init:*: {
  ;;THIS IS THE NEW UPDATE! DO NOT REMOVE THIS NEXT LINE
  did -b colors 101
  ;;LEAVE THE LINE ABOVE
  var %colors = BLACK D.BLUE D.GREEN RED BROWN PURPLE ORANGE YELLOW L.GREEN S.BLUE L.BLUE D.BLUE PINK D.GREY L.GREY
  did $iif($gettok($replace($did(201).text,$chr(44),$chr(32)),1,32),-rae,-rb) colors 202 $gettok(%colors,$gettok($replace($did(201).text,$chr(44),$chr(32)),1,32),32)
  if ($mdx) {
    if ($regex(%colors.sel,$chr(44))) {
      var %xcheck = $replace(%colors.sel,$chr(44),$chr(32))
      dll $mdx SetColor 202 text $color($gettok(%xcheck,1,32))
      dll $mdx SetColor 202 background $color($gettok(%xcheck,2,32))
      dll $mdx SetColor 202 textbg $color($gettok(%xcheck,2,32))
    }
    else {
      dll $mdx SetColor 202 text $color(%colors.sel)
    }
  }
  did -cf colors $iif(!%colors.setting,102,$iif(%colors.setting = 1,100,101))
  if (!%colors.setting) {
    did -b colors 201,202
  }
}
on *:DIALOG:colors:sclick:*: {
  if ($did == 100 || $did == 101) {
    did -e colors 201,202
    did $iif($gettok($replace($did(201).text,$chr(44),$chr(32)),1,32) isnum 1-15 && $gettok($replace($did(201).text,$chr(44),$chr(32)),2,32) isnum 1-15,-e,-b) colors 300
  }
  if ($did == 102) {
    did -b colors 201,202
    did -e colors 300
  }
  if ($did == 300) {
    $iif($did(102).state,unset,set) %colors.setting $iif($did(100).state,1,2)
    if ($did(100).state || $did(101).state) {
      set %colors.sel $did(201).text
    }
    dialog -x colors
  }
  if ($did == 301) {
    dialog -x colors
  }
}
on *:DIALOG:colors:edit:*: {
  if ($did == 201) {
    var %colors = BLACK D.BLUE D.GREEN RED BROWN PURPLE ORANGE YELLOW L.GREEN S.BLUE L.BLUE D.BLUE PINK D.GREY L.GREY
    if (!$regex($did(201).text,$chr(44))) {
      did $iif($did(201).text isnum 1-15,-e,-b) colors 300
      did $iif($did(201).text isnum 1-15,-rae,-rb) colors 202 $gettok(%colors,$did(201).text,32)
      if ($mdx) {
        dll $mdx SetColor 202 text $color($did(201).text)
        dll $mdx SetColor 202 background reset
        dll $mdx SetColor 202 textbg reset
      }
    }
    else {
      var %xcheck = $replace($did(201).text,$chr(44),$chr(32))
      if ($gettok(%xcheck,1,32) isnum 1-15 && $gettok(%xcheck,2,32) isnum 1-15 && !$gettok(%xcheck,3,32)) {
        did -e colors 300
        did -rae colors 202 $gettok(%colors,$gettok(%xcheck,1,32),32)
        if ($mdx) {
          dll $mdx SetColor 202 text $color($gettok(%xcheck,1,32))
          dll $mdx SetColor 202 background $color($gettok(%xcheck,2,32))
          dll $mdx SetColor 202 textbg $color($gettok(%xcheck,2,32))
        }
      }
      else {
        did -b colors 300
        did -rb colors 202 $gettok(%colors,$gettok(%xcheck,1,32),32)
      }
    }
  }
}
on *:INPUT:*: {
  if ($left($1,1) != / && c !isincs $chan($chan).mode) {
    if (%colors.setting == 1) {
      msg $active  $+ $base($gettok($replace(%colors.sel,$chr(44),$chr(32)),1,32),10,10,2) $+ $iif($regex(%colors.sel,$chr(44)),$chr(44),) $+ $base($gettok($replace(%colors.sel,$chr(44),$chr(32)),2,32),10,10,2) $+ $1-
      halt
    }
  }
}

Comments

  (26)  RSS
jonesy44
Comments: 1,892
 
mIRC Snippet:  Text Color 1.0.1
Posted on Aug 16, 2008 7:35 pm
Updated;
- Will simply use plain text is mode is +c
- Simpler, and faster input line, thanks to lindrian
jakobLUVSpizza
Comments: 33
 
mIRC Snippet:  Text Color 1.0.1
Posted on Aug 16, 2008 7:38 pm
Jonesy44 i am going to get you banned from the server
EL
Comments: 1,114
 
mIRC Snippet:  Text Color 1.0.1
Posted on Aug 16, 2008 7:43 pm
ROFL wtf thats random RELURK.And your network is retarded the fact that they can keep switchin socks and commin back says you can do a damn thing,and whats a ircd network with out BOPM/DNSDL'S? just another target.Idle threats my lil friend.`-.-ยด
Soulkeeper
Comments: 67
 
mIRC Snippet:  Text Color 1.0.1
Posted on Aug 16, 2008 7:43 pm
I'll beta it. :>
jonesy44
Comments: 1,892
 
mIRC Snippet:  Text Color 1.0.1
Posted on Aug 16, 2008 7:50 pm
Thanks soulkeeper! Much appreciated :P

jakobLUVSpizza, what the fukk you on bout bud? lol @ THE Server. which server is this. because no doubt; i'll rank higher than you unless it's ustream .. where well .. i still rank higher than you. :D
Eugenio
Comments: 1,178
 
mIRC Snippet:  Text Color 1.0.1
Posted on Aug 16, 2008 8:37 pm
brilliant script.....just why dont it work with white ?!?
/me rates 2 untill you add/fixe what was said on: /server -m IRC.CHATSCAPE.NET
jonesy44
Comments: 1,892
 
mIRC Snippet:  Text Color 1.0.1
Posted on Aug 16, 2008 8:47 pm
That blows.. but hey this is a beta. and it seems to work for everyone but yourself. Have you checked you're marking the dialog?
pwnisher3
Comments: 188
 
mIRC Snippet:  Text Color 1.0.1
Posted on Aug 21, 2008 7:14 pm
Quote:

-
* /dll: unable to open file 'C:Documents and SettingsrenjiApplication DatamIRCmdx.dll' (line 9, remote.ini)
-
* /dll: unable to open file 'C:Documents and SettingsrenjiApplication DatamIRCmdx.dll' (line 82, remote.ini)
-
* /dll: unable to open file 'C:Documents and SettingsrenjiApplication DatamIRCmdx.dll' (line 93, remote.ini)
-



WTF???
jonesy44
Comments: 1,892
 
mIRC Snippet:  Text Color 1.0.1
Posted on Aug 21, 2008 7:24 pm
Clearly, it is not there..
pwnisher3
Comments: 188
 
mIRC Snippet:  Text Color 1.0.1
Posted on Aug 23, 2008 10:11 am
well duhh but witch document is that anyway?
jonesy44
Comments: 1,892
 
mIRC Snippet:  Text Color 1.0.1
Posted on Nov 22, 2008 10:17 am
i just noticed a little error with the script that was stopping it working, if you're still active on hawkee, it's been sorted.
AHBARAR
Comments: 167
 
mIRC Snippet:  Text Color 1.0.1
Posted on Nov 23, 2008 12:34 pm
shouldnt it be 11,01 to make the background not effected by numbers for example it can take
11,1 + 0 as 11,10 so new color for background
irchainscriptz
Comments: 126
 
mIRC Snippet:  Text Color 1.0.1
Posted on Nov 23, 2008 12:38 pm
I'll beta it also :P
jonesy44
Comments: 1,892
 
mIRC Snippet:  Text Color 1.0.1
Posted on Nov 23, 2008 12:46 pm
AHBARAR, i've only just found that out and i forgot about this script, when i get a chance i'll update x]
AHBARAR
Comments: 167
 
mIRC Snippet:  Text Color 1.0.1
Posted on Nov 27, 2008 6:26 am
No problem mate a nice script btw |Like it ... >:)
jonesy44
Comments: 1,892
 
mIRC Snippet:  Text Color 1.0.1
Posted on Nov 27, 2008 11:02 am
Good good :P I'll work on this when i get some free time
BrAndo
Comments: 28
 
mIRC Snippet:  Text Color 1.0.1
Posted on Nov 29, 2008 6:16 pm
why not just make it a picwin and eliminate the need for mdx
jonesy44
Comments: 1,892
 
mIRC Snippet:  Text Color 1.0.1
Posted on Nov 29, 2008 7:41 pm
Picwins annoy me, even though they have their qualities so do dialogs.
mirctr
Comments: 1
 
mIRC Snippet:  Text Color 1.0.1
Posted on Dec 4, 2008 4:22 pm
good addon
jonesy44
Comments: 1,892
 
mIRC Snippet:  Text Color 1.0.1
Posted on Dec 4, 2008 4:30 pm
Thanks, care to rate? :P
bvca
Comments: 5
 
mIRC Snippet:  Text Color 1.0.1
Posted on Feb 20, 2009 9:53 pm
Nice. Easy. And it works. But could it be updated just alittle? Need the color white to be added (colors only go from 1-15). Also is it possible to add a "Bold" text button?
Thanks
jonesy44
Comments: 1,892
 
mIRC Snippet:  Text Color 1.0.1
Posted on Feb 21, 2009 9:14 am
I'm sure i could soon, i never really finished this project so yeah, i'll see what i can do.
bvca
Comments: 5
 
mIRC Snippet:  Text Color 1.0.1
Posted on Feb 21, 2009 11:09 am
Thanks jonesy44. Will be looking for the update. Bet the rating will go way up too.
dashh
Comments: 22
 
mIRC Snippet:  Text Color 1.0.1
Posted on Feb 21, 2009 5:09 pm
pwnisher3 lol ;S and your \ where is ? xD

add some "filename" ( $qt(file) )
L0ckp1ck
Comments: 12
 
mIRC Snippet:  Text Color 1.0.1
Posted on Feb 16, 2010 5:26 pm
this doesn't work
jonesy44
Comments: 1,892
 
mIRC Snippet:  Text Color 1.0.1
Posted on Feb 18, 2010 11:33 am
Then you're using it wrong. Jog on.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  

Bottom