mIRC Homepage

rtf formatting within mirc

Posted By: NightChillz

rtf formatting within mirc - 13/07/07 04:15 AM

hey,

i'm just curious about this, i have an addon that saves certain data to file and prints it, and a friend of mine suggested underlining/color coding certain items, and i know i cant do this in notepad, but i'm sure its possible in rtf format, does anyone know how i can write to an rtf file in this manner, or should i say what the char codes are that i need to use or whatever?


example:

/write file.rtf i want to write this in blue and underline, and this part bold

how would i accomplish this? thanks
Posted By: LostShadow

Re: rtf formatting within mirc - 13/07/07 04:57 AM

If you know how to talk in blue or underline in mIRC, then you can do the same for the /write command..
Posted By: NightChillz

Re: rtf formatting within mirc - 13/07/07 01:47 PM

yeah thats the first thing i thought of and tried, CTRL+U, doesnt work also tried the CTRL+K# and that doesnt work either, it just writes:
4this is underline and red

to the file
Posted By: genius_at_work

Re: rtf formatting within mirc - 13/07/07 01:52 PM

mIRC control codes ONLY work in mIRC (and other IRC clients).

@OP
You need to find documentation that explains how the rtf format creates colors, underlines, etc. Click

-genius_at_work
Posted By: NightChillz

Re: rtf formatting within mirc - 13/07/07 02:05 PM

lol, funny i was just reading that, and i'm not sure but i think thats how it works internally, and not with mirc's write command
Posted By: NightChillz

Re: rtf formatting within mirc - 13/07/07 02:09 PM

hmmmm, i think i see how i can do it tho, i edited some text within an rtf doc, saved it and closed, renamed file to txt and looked at it and that shows me the internals, i think ithink i'll have to /write to a text file with all the rtf formatting in it, then /rename to a rtf and that should work...
Posted By: starbucks_mafia

Re: rtf formatting within mirc - 13/07/07 02:34 PM

You don't have to rename it afterwards. RTF files are just like regular text files, all that's different is that certain sequences of characters have special meaning (just as mIRC has its own set of control codes). All you have to do is convert mIRC's control codes to the RTF escape sequences, and then you can /write them to a file with any extension you want (.rtf, .txt, etc.). The extension doesn't affect the content of the file or what you can write to it with mIRC's commands, it only changes how Windows decides what program should run a file when it's double-clicked.
Posted By: NightChillz

Re: rtf formatting within mirc - 13/07/07 08:55 PM

yah i got it sorted thanks...
© 2021 mIRC Discussion Forums