What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Beta Release] RTF Tools 0.3.1

Pages: (3): « First [ 1 ] 2 3 » Last »
[Beta Release] RTF Tools 0.3.1
Author: Message:
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
O.P. [Beta Release] RTF Tools 0.3.1
This is something that was requested that I decided to work on.

Basically: 

  1. copy some RTF (Rich Text Format) text from eg word, wordpad or script editor
  2. goto a convo a type /rtf

Watch the magic :P 

If you find any bugs etc, let me know, ideally sending me the rtf files which cause problems.  I know there are problems atm, but for basic text colouring and formating it should work :)

Don't try sending an image as it will likely just kill WLM, I don't extract them out yet.

Changelog:

0.2 - First Public Release
0.3
  • Fixed bug pointed out by Mattike
  • Word rtf now doesn't cause script error, but still isn't perfect
  • Remove alignment tags + font size tags
  • Misc rtf cleanups
0.3.1 - Current Release
  • Added menu item
  • Fixed text ignoring default/first colour
  • Word RTF isn't quite as messy now, but still not great
  • Misc rtf cleanups

Known Issues
  • Word RTF still includes mess
  • New lines are stripped - see images below for example
  • Not text object eg images etc aren't stripped, leaving loads of rubbish text.


Images:

Script Editor
[Image: script_editor.png]

RTF Tools
[Image: rtf_tools.png]

Its close!

Have fun!

Downloads of 0.2 :  10
Downloads of 0.3 :  8

Download RTF Tools 0.3.1

.plsc File Attachment: RTF Tools.plsc (2.56 KB)
This file has been downloaded 335 time(s).

This post was edited on 09-07-2007 at 04:26 PM by Dempsey.
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
09-05-2007 04:30 PM
Profile E-Mail PM Web Find Quote Report
Sunshine
Elite Member
*****

Avatar

Posts: 5141
Reputation: 122
– / Female / Flag
Joined: Mar 2004
Status: Away
RE: [Beta Release] RTF Tools
"The Script has been imported but failed to start."

Debug:
Error: '/' wordt verwacht (code: -2146827276)
       File: RTF Tools.js. Line: 49.

wordt verwacht = is expected

When uncheckin, apply and restart the script in script preferences:
"Couldn't start script "RTF Tools 0.2". The script may be defective or you may not have the proper privileges to run scripts."
[Image: 25dr3o9]
09-05-2007 04:44 PM
Profile E-Mail PM Web Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [Beta Release] RTF Tools
Seems like he forgot to end his RegExp's. :P Replace lines 49 and 50 with:
code:
rtfData = rtfData.replace(/\\{/,"{");   
rtfData = rtfData.replace(/\\}/,"}");

Wonderful work there, Dempsey! I tried it with some copied text from WordPad and the debugger doesn't lie: it works! :D However, my Office Word 2007 seems to make things a lot more difficult, it doesn't recognize it. (line 86 "var sColourTbl = rtfData.match(/\\colortbl(.+)\}/)[1];" fails).

I changed it so it actually returns the text, this is really useful! (H)

Hint: add the command to Plus!' commands list! ;)

This post was edited on 09-05-2007 at 05:40 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
09-05-2007 05:39 PM
Profile E-Mail PM Web Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: [Beta Release] RTF Tools
Yeh, it looks great:

[Image: attachment.php?pid=846872]

.png File Attachment: Untitled-2.png (8.85 KB)
This file has been downloaded 626 time(s).

This post was edited on 09-05-2007 at 05:57 PM by absorbation.
09-05-2007 05:56 PM
Profile PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
O.P. RE: [Beta Release] RTF Tools
Updated to RTF Tools 0.3 in first post
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
09-06-2007 12:06 PM
Profile E-Mail PM Web Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: [Beta Release] RTF Tools
Just downloaded 0.3
quote:
---------------------------
Messenger Plus! Live
---------------------------
The script has been imported but failed to start.
---------------------------
OK   
---------------------------

The script doesn't appear in the Debug window nor the Scripts List.

And i cba to restart wlm atm.
09-06-2007 02:03 PM
Profile E-Mail PM Web Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
O.P. RE: [Beta Release] RTF Tools
quote:
Originally posted by Felu
Just downloaded 0.3

The script doesn't appear in the Debug window nor the Scripts List.

And i cba to restart wlm atm.
anyone else getting this?
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
09-06-2007 02:16 PM
Profile E-Mail PM Web Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: RE: [Beta Release] RTF Tools
quote:
Originally posted by Dempsey
quote:
Originally posted by Felu
Just downloaded 0.3

The script doesn't appear in the Debug window nor the Scripts List.

And i cba to restart wlm atm.
anyone else getting this?


me too :D


Edit:
i've opened RTF_Tools-6.plsc with WinRAR.  1 file?

[Image: abcdefghj.PNG]

This post was edited on 09-06-2007 at 02:47 PM by felipEx.
09-06-2007 02:38 PM
Profile E-Mail PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: [Beta Release] RTF Tools
No, it doesn't include any script files... doh dempsy :p
09-06-2007 03:42 PM
Profile PM Web Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
O.P. RE: [Beta Release] RTF Tools
Whoops, updated the attachment now
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
09-06-2007 03:51 PM
Profile E-Mail PM Web Find Quote Report
Pages: (3): « First [ 1 ] 2 3 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On