ChatWnd event question - 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: ChatWnd event question (/showthread.php?tid=93628)
ChatWnd event question by trevorpe on 01-22-2010 at 12:38 AM
Hi there,
This seemed to act up. It looks good to me. I re-edited some of the code from this script.
This code is in the ChatWndSendMessage event handler.
A few variables are not the usual, but should be easy enough to understand.
Registry writing and read functions are basically like the function names.
I was wondering if anybody sees something that could cause problems with normal chatting.
code: if(FullMessage.match(/brb/)!=null && getReg("brb") == 1 && Messenger.MyStatus > 2) {
setReg("prestatus", Messenger.MyStatus, 1);
setReg("brbing", 1, 1);
ShowMessage("Your status is now \"Away\".");
Messenger.MyStatus=7;
}
if(FullMessage.match(/[(g2g)(gtg)]/)!=null && getReg("g2g") == 1 && Messenger.MyStatus > 2) {
switch(getReg("signout")) {
case 0 :
ShowMessage("Your status will be \"Appear Offline\" in 15 seconds.");
MsgPlus.AddTimer("AppearOffline", 15000);
break;
case 1 :
MsgPlus.AddTimer("Signout", 15000);
ShowMessage("You will sign out in 15 seconds.");
break;
}
}
RE: ChatWnd event question by roflmao456 on 01-22-2010 at 01:43 AM
i don't see the function returning or changing anything (other than status) so it shouldn't affect normal chatting.
|