Shoutbox

Clear chat history text - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Clear chat history text (/showthread.php?tid=94108)

Clear chat history text by matty on 03-14-2010 at 01:24 PM

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.
RE: Clear chat history text by CookieRevised on 03-15-2010 at 01:30 AM

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


RE: Clear chat history text by matty on 03-15-2010 at 12:05 PM

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!