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.