mIRC Format Code Converter
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 0.0 (of 0 scores) |
| Date Added | Jul 06, 2009 |
| Last Updated | Jul 06, 2009 |
| Tags | bold clipboard codes color convert forum html mirc phpbb posts underline |
Introduction
Here is a quick example;
mIRC:
| Code: |
| [20:16:38] <04Demonoid> 8,4 HELLO 4,8 HELLO 8,4 HELLO 4,8 HELLO 0,12 Sm00ch_Operator 4,8 HELLO 8,4 HELLO 4,8 HELLO 8,4 HELLO |
Converted to PHPBB:
| Code: |
| 20:16:38 <[color=red]Demonoid> [/color][color=yellow] HELLO [/color][color=red] HELLO [/color][color=yellow] HELLO [/color][color=red] HELLO [/color][color=black] Sm00ch_Operator [/color][color=red] HELLO [/color][color=yellow] HELLO [/color][color=red] HELLO [/color][color=yellow] HELLO[/color] |
RESULTS:
20:16:38 <Demonoid> HELLO HELLO HELLO HELLO Sm00ch_Operator HELLO HELLO HELLO HELLO
As you can see I removed the background colors. This will only work for foreground colors, bold and underline.
To use this script.
- Copy some mIRC text to the clipboard(Hold down ctrl to copy the color codes)
- Right Click the channel,query or Status screen and scroll to Convert Clipboard Contents.
- Select PHPBB or HTML and choose Clipboard or file. (Clipboard will do the conversion within the clipboard and you can just click ctrl+v to paste the results. File will send the results to the filename you select.)
Suggestions will be welcomed, as I am only scratching the surface of what can be done with some of these routines.
**One thing to note** If you are trying to copy long lines of really colorful text, you will need mIRC 6.32 or higher. Each color adds about 20 characters to the text, so if you have a full line of 430+ characters, 27 color changes will push you over the old variable limit.
mIRC Snippet:
mIRC Format Code Converter
Posted on Jul 6, 2009 9:55 pm
Posted on Jul 6, 2009 9:55 pm
MuaHahAhaHahAhaHaaAaaAaaAaaaaa!!!!!!!
mIRC Snippet:
mIRC Format Code Converter
Posted on Jul 6, 2009 9:58 pm
Posted on Jul 6, 2009 9:58 pm
:D Ownage.
mIRC Snippet:
mIRC Format Code Converter
Posted on Jul 7, 2009 12:06 am
Posted on Jul 7, 2009 12:06 am
Looks nice, good job.
mIRC Snippet:
mIRC Format Code Converter
Posted on Jul 7, 2009 12:09 am
Posted on Jul 7, 2009 12:09 am
Thanks Aucun50 :)
mIRC Snippet:
mIRC Format Code Converter
Posted on Jul 7, 2009 4:08 am
Posted on Jul 7, 2009 4:08 am
hi
i see 8,4 HELLO <= that mean color of text yellow and background red
i dont now much in html or phpBB but i didnt saw the background color here
i see 8,4 HELLO <= that mean color of text yellow and background red
i dont now much in html or phpBB but i didnt saw the background color here
| Code: |
| [color=yellow] HELLO [/color] |
mIRC Snippet:
mIRC Format Code Converter
Posted on Jul 7, 2009 10:15 am
Posted on Jul 7, 2009 10:15 am
| Quote: |
| i dont now much in html or phpBB but i didnt saw the background color here |
the description mentions that background colours will not work.
mIRC Snippet:
mIRC Format Code Converter
Posted on Jul 7, 2009 10:26 am
Posted on Jul 7, 2009 10:26 am
| Quote: |
| As you can see I removed the background colors. This will only work for foreground colors, bold and underline. |
PHPBB forums don't allow the users to define background colors. I removed them on purpose with this routine.
| Code: |
| alias -l RemBackCol { var %bc, %bcc $1- while ($regex(%bcc,/([0-9]{1,2},[0-9]{1,2})/)) { noop = $regsub(%bcc,/([0-9]{1,2},[0-9]{1,2})/,$gettok($regml($regml(0)),1,44),%bc) %bcc = %bc } return $iif(%bc,%bc,$1-) } |
I also removed them for html because I think it would be ridiculous to change the background of a form each time there is a background change in irc. I also changed white to black and color stops to black.
MuaHahAhaHahAhaHaaAaaAaaAaaaaa!!!!!!!
mIRC Snippet:
mIRC Format Code Converter
Posted on Jul 7, 2009 11:29 am
Posted on Jul 7, 2009 11:29 am
ok i see but u can do it with $regsubex u dont need to do much aliases
E.G for color only an E.G ok??
so if u type
u'll get include the spaces
[20:16:38] <Demonoid> HELLO HELLO HELLO HELLO Sm00ch_Operator HELLO HELLO HELLO HELLO
E.G for color only an E.G ok??
| Code: |
| alias t { var %x $regsubex($1-,/(\d+)( $+ $chr(44) $+ \d+)?\s?/g,\1),%c black darkblue green red maroon purple orange yellow lime darkcyan aqua blue pink dimgray darkgray echo -a $regsubex(%x,/(\d+)\s?(\S+)(\s+|$)/g,[color= $+ $gettok(%c,$iif(\1,$v1,1),32) $+ ]\2[/color]\3) } |
so if u type
| Code: |
| /t [20:16:38] <04Demonoid> 8,4 HELLO 4,8 HELLO 8,4 HELLO 4,8 HELLO 0,12 Sm00ch_Operator 4,8 HELLO 8,4 HELLO 4,8 HELLO 8,4 HELLO |
u'll get include the spaces
[20:16:38] <Demonoid> HELLO HELLO HELLO HELLO Sm00ch_Operator HELLO HELLO HELLO HELLO
mIRC Snippet:
mIRC Format Code Converter
Posted on Jul 7, 2009 12:29 pm
Posted on Jul 7, 2009 12:29 pm
Actually you are wrong WorldDMT. If you read and understand the whole script you will see that I have taken careful steps to make sure that the PHPBB code is in perfect order.
If you have an extra [color=] without a coinciding [/color] match The PHPBB parser will treat it as normal text. The same goes for extra [/color] markers.
In addition, the bold and underlined are done the same way for the similar reasons.
I also made separate aliases because I might decide to add another output format to this script.
I'm not at all trying to argue with you WorldDMT. It is obvious to everyone here that you have exceptional mSL scripting skills and a great mind. The problem that I have is that you only see the code and you never acknowledge the work that has went into making it.
In fact, you go from post to post discrediting the actual scripter by reposting an edited version of someones hard work. Editing a working script to make it more efficient or smaller is much easier than actually writing a script from scratch. So even though you might end up with a better script by editing other peoples posts, you had to stand on the real scripters shoulders to do so.
A lot goes into making a script from scratch. The code is the easy part.
Sure we are posting scripts here and it's all about the script, but it's not really ALL about the script :P
Something to consider :)
If you have an extra [color=] without a coinciding [/color] match The PHPBB parser will treat it as normal text. The same goes for extra [/color] markers.
| Code: |
| This is wrong ---->> [/color][color=red]hello[/color] <<--- from your code. |
In addition, the bold and underlined are done the same way for the similar reasons.
| Code: |
| [color=red][b][u]hello[/b][/color][/u] <--- This will also fail. [b][u][color=red]hello[/color][/u][/b]<-- Should be this |
I also made separate aliases because I might decide to add another output format to this script.
I'm not at all trying to argue with you WorldDMT. It is obvious to everyone here that you have exceptional mSL scripting skills and a great mind. The problem that I have is that you only see the code and you never acknowledge the work that has went into making it.
In fact, you go from post to post discrediting the actual scripter by reposting an edited version of someones hard work. Editing a working script to make it more efficient or smaller is much easier than actually writing a script from scratch. So even though you might end up with a better script by editing other peoples posts, you had to stand on the real scripters shoulders to do so.
A lot goes into making a script from scratch. The code is the easy part.
- The Original Idea - The main component of every script.
- Planning - Endless hours can be spent just trying to decide how you want the script to act and respond.
- Design - Designing dialogs and menu's so they are easy to read and self explanatory.
- Flowcharts - I still use these :P Scripters who don't still have to map out the flow in their mind.
- Scripting - Writing the actual code to put it all together.
- Testing & Debugging - All code has to be tested clean before posting.
- Bug Fixes and error trapping - Code that is added as a result of testing results.
- Screen Shots - Taking screen shots to be placed in your post.
- Writing a description/instructions - Description to be placed in your post.
- Posting - Putting it all together and posting it to your favorite sites.
Sure we are posting scripts here and it's all about the script, but it's not really ALL about the script :P
Something to consider :)
mIRC Snippet:
mIRC Format Code Converter
Posted on Jul 7, 2009 2:03 pm
Posted on Jul 7, 2009 2:03 pm
| Code: |
| alias clr { var %c = black black darkblue darkgreen red maroon purple orange yellow lightgreen teal lightblue blue pink darkgray lightgray var %m = $1- %m = $regsubex(%m,/(\d?\d)(?:,\d?\d)?(.*?)(?=|||$)/gi,[color= $+ $gettok(%c,$calc(\1 + 1),32) $+ ] $+ \2 $+ [/color]) %m = $regsubex(%m,/(.*?)(?:|(?=|$))/gi,[u] $+ \1 $+ [/u]) %m = $regsubex(%m,/(.*?)(?:|(?=|$))/gi,[b] $+ \1 $+ [/b]) echo -b %m } |
Should work I haven't tested it thoroughly, but seems to be working properly.
Edit: it seems mine breaks =(
mIRC Snippet:
mIRC Format Code Converter
Posted on Jul 7, 2009 2:09 pm
Posted on Jul 7, 2009 2:09 pm
Thanks TheImrac but the script is already working exactly the way it was intended to.








