Based on mlevit's Auto status change script and edited with his permission.
Status Interceptor will automatically change your status and personal message when you send a message containing specific keywords.
Features:
- Toggable status keywords for each email
- Status automatically changes to "Busy" when a message contains "busy"
- Status automatically changes to "Be Right Back" when a message contains "brb"
- Status automatically changes to "Away" when a message contains "bbl" or "bbs"
- Status automatically changes to "Out To Lunch" when a message contains "lunch" or "dinner"
- Status automatically reverts to original status when a message contains "back" or "bak"
- Status will not change if user's status is set to "Appear Offline"
- Personal message automatically changes to custom text when a message contains "brb", "bbl" or "bbs"
- Personal message may be changed to full message sent
- Personal message may be customised with a mask
- Personal message may trim excess spaces before, within and after
- Personal message automatically reverts to original personal message when a message contains "back" or "bak"
- Messages containing "busy", "brb", "bbl", "bbs", "lunch" or "dinner" may be sent to all open conversations (toggable for each email)
Example Usage:
quote:
User says:
brb Status changes to "Be Right Back"
User says:
back Status changes to "Online"
quote:
User (Busy) says:
bbl Status changes to "Away"
User says:
bak Status changes to "Busy"
quote:
User says:
BRB toilet Status changes to "Be Right Back"
PSM changes to "toilet"
User says:
bak Status changes to "Online"
PSM reverts to previous
quote:
User says:
I'll bbs going SHOPPING Status changes to "Away"
PSM changes to "going SHOPPING"
User says:
I'm back Status changes to "Online"
PSM reverts to previous
Change Log:
16th of August 2006 - v1.2
- Added a settings interface, containing all previous (and new) settings
- Different status keywords can be toggled for each email (for those who don't want "busy", "lunch" and "dinner")
- Custom mask for personal message
14th of August 2006 - v1.1
- Status automatically changes to "Busy" when a message contains "busy"
- Status automatically changes to "Out To Lunch" when a message contains "lunch" or "dinner"
- Custom personal message more customizable
- - Custom personal message may be the full message sent
- Spaces before, within and after the custom message may be trimmed
- Cleaner and more efficient code
Settings (v1.0 and v1.1 only):
The "Send to All Open Conversations" option can be toggled in the menu ("Plus! > Status Interceptor > [ ] Send to All Open Conversations"). If the box is crossed ("[x]"), messages with "brb", "bbl", "bbs", "back" and "bak" will be sent to all conversations that are open.
To customize the personal message with space trimming or full message setting, you will need to edit the script. To turn an option "on", you will need to set it to "1" (no quotations marks). To turn an option "off", you will need to set it to "0" (no quotations marks). The options are found at the bottom of the list of "var ...". Until I make a configuration box, this will be the only way to change these settings. The default setting is as follows:
code:
var FullMessagePsm = 0; //Sets the custom personal message to the full message sent
var TrimSpacesBefore = 1; //Trims additional spaces before the custom personal message
var TrimSpacesWithin = 0; //Trims additional spaces within the custom personal message
var TrimSpacesAfter = 1; //Trims additional spaces after the custom personal message
This script was previously found in
my reply to mlevit's
Auto status change script thread. However, because not everyone read through the entire thread, it was not getting seen properly. Therefore, I've decided to make this new thread for my script. Version 1.0 of
Status Interceptor is equivalent to my version 1.2 of
Auto Status Change. I will try to add in any suggestions that are not overly complicated.
Status Interceptor v1.2 will probably be my final release, unless I need to fix some bugs. I may decide later to add more statuses, a custom wordbank and possibly translations. At this point in time, you can edit the script to adjust to your own preferences. If you want to have this script in your language, just tell me the translation of the words (exact) and the shortcuts that should be detected.
NOTE: I am not taking credit for mlevit's work. I will remove this script if required by mlevit or others.
Previous Versions:
Status Interceptor v1.1
Status Interceptor v1.0