Shoutbox

Auto Im OK - 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: Auto Im OK (/showthread.php?tid=67859)

Auto Im OK by Remulus on 10-30-2006 at 11:56 AM

I'm using the Auto Im OK script, but the script isn't working properly. The script only responds to a question without a question mark
Example:
How are you? - nothing happens
How are you - Im OK! U?


How do I say a question mark in JavaScript? I tried ascii but I didn't help.


function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin, Message, MessageKind)
{
if (on == '1'){
if (Origin != Messenger.MyName){

if (Message.match(/(^|\s+)(\*)?how are you(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
RE: Auto Im OK by NanaFreak on 10-30-2006 at 12:17 PM

and also when posting codes use [code]<code here>[/code] tags....

why not just use this script Answering Machine Plus 2.20 it will do the job for you