What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Clear chat history text

Clear chat history text
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. Clear chat history text
This script is very simple. By entering the command /clear it will clear the chat history.

Previous scripts would open and close the chat window. This script uses Active Accessibility to replace the text with Chat History Cleared (there are reasons for doing this).

Known issues:
  • After clearing the text each message will be preceded with * then the bullet then the message
  • Emoticons show up as their code followed by their image
  • English only at the moment. Found a bug with other languages. The history area name is a localized string which is translated across different versions of WLM.

If people are really curious I will post the non-obfuscated code. I just did this so people won't edit and break it.

.plsc File Attachment: AA.ChatWnd.plsc (1.54 KB)
This file has been downloaded 123 time(s).

This post was edited on 03-14-2010 at 04:59 PM by matty.
03-14-2010 01:24 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Clear chat history text
very nice (y)...

(and finaly some usage for that never-seen-used-before Plus! function :p)

btw, another issue: chat will not be logged anymore (goes for both Plus! as native WLM logs)

PS: The needed localized string can be found at string resource number 60049
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-15-2010 01:30 AM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. RE: Clear chat history text
I cannot seem to figure out why that is happening though. Also chat logging still worked for me. And I already figured out about the localized string and where I can get it from. I didn't think it was going to be translated.



[13:37] Matty: hey can i ask you a quick question?
[13:37] Matty: then answer may not be quick but the question is lol
[13:40] Patchou: hello
[13:40] Patchou: go ahead
[13:40] Matty: i wrote a script to utilize a /clear command which clears the history text using Active Accessibility. There are a few side affects though
- the start of a message has * then the bullet then the message
- emoticons have their code followed by the emoticons at the END of the message
- plus! chat logging seems to no longer work

http://shoutbox.menthix.net/showthread.php?tid=94108
[13:41] Patchou: you can't clear stuff in there. If you remove emoticons, the internal tracking count of Messenger gets messed up
[13:42] Patchou: everywher you get a *, that means an object of some kind (like a picture) has been inserted
[13:42] Matty: i was thinking it was something internal to messenger
[13:42] Patchou: if that was that simple, /clear would still be in Plus!

This post was edited on 03-15-2010 at 07:18 PM by matty.
03-15-2010 12:05 PM
Profile E-Mail PM Find Quote Report
« 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