User Tag List

Results 1 to 2 of 2

Thread: IRC Colors.

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    Conno's Avatar
    Join Date
    Jul 2006
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IRC Colors.

    Good Evening!

    I'm not sure how many of you clickers are familar with the IRC Protocol & IRC Color Protocol in general. I've spent most of tonight trying to work out a system for parsing strings that use IRC Colors for display in the RTF object.

    IRC Colors use the Control Character ^C3 (ASCII: ) Followed by a number between 1 and 14 to define the color (Colors and detail as pointed out in )http://www.ircxpro.com/protocols/color.txt

    Basically, Any text that comes after the # (#number 1-14) would be transformed into the corrsponding color, either until the end of the string or until another  (^C3 character) is found.

    E.g.

    Hello 4World

    Hello would appear in black (default), World would appear as Red.

    I was wondering if anyone would know the best way to do this, remembering that multiple colors might be used in a string. I'm absolutely stumped on ideas. If anyone could post an example too that would be much appreciated.

    All the best, and I look forward to your replys

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jun 2006
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: IRC Colors.

    Oof... I think there used to be an example somewhere on the net. erm... Well, I think to do this requires the "find" and "select" actions of the RTF object.

    Also, don't forget that a comma and a digit after the first digit adds a background. For instance:
    (^C3)0,1Test
    Would make the text white with a black background. I believe this is possible with the RTF object aswell though.

Similar Threads

  1. Bug with colors
    By Yos in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 4th October 2013, 12:13 PM
  2. CoLoRs NEXT
    By Francois in forum Released Games & Apps in Flash
    Replies: 1
    Last Post: 10th June 2012, 10:46 PM
  3. Syntax Colors
    By nivram in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 14th April 2009, 03:22 PM
  4. changing colors
    By ayejes in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th February 2008, 03:32 PM
  5. Restore Colors
    By Pkeod in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th February 2007, 01:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •