What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » artificial intelligence script(close window)

artificial intelligence script(close window)
Author: Message:
xsouldeath
Junior Member
**


Posts: 30
Joined: Sep 2006
O.P. artificial intelligence script(close window)
#1well ive been making a bot u can add zerounderscore@hotmail.com if u want to try it out or w/e

function OnEvent_ChatWndDestroyed(ChatWnd)
{
ChatWnd.SendMessage("You better not even think about closing the window dude!!");OnEvent_ChatWndDestroyed
The OnEvent_ChatWndDestroyed event is fired when a chat window is destroyed.

Syntax
OnEvent_ChatWndDestroyed(
    [object] ChatWnd
);
Parameters
ChatWnd
[object] Reference to the ChatWnd object attached to the chat generating the event.
Return Value
No value has to be returned by this event.

Remarks
None.

Event Information
Event Source Windows Live Messenger
Availability Messenger Plus! Live 4.00
"

When contact closes window it still works and DOES NOT OPEN A NEW WINDOW!

so i guess this could be impleneted still
BUT i need a way given the current window
ChatWnd to get the contact's email who I am talking to..
that way I could use the open window
function OnEvent_ContactSignin(Email)
{
ChatWnd=Messenger.OpenChat(Email);
ChatWnd.SendMessage("Hi there my best friend.. How u doin today ;)");
}

}


"
#2 What is the escape charaacter
like for example
normally to reply to a user message i use

if(Message.match(/(^|\s+)(\*)?you suck(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage("no you do!");
}

but if the user says like
/nudge
(gives  a nudge)
i can't get it to work because the slash is reserved


lowercase copy is a simple copycat
basically its one "function" that i would be using in my artificial intelligence
since i don't want to ask well in pseudocode
if (message == "hello")
do this
else if (message=="Hello")
do this
..


.zip File Attachment: lowerCaseCopyCat.zip (1.86 KB)
This file has been downloaded 174 time(s).

This post was edited on 09-20-2006 at 01:06 AM by xsouldeath.
09-19-2006 11:32 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
artificial intelligence script(close window) - by xsouldeath on 09-19-2006 at 11:32 PM
RE: artificial intelligence script(close window) - by cloudhunter on 09-19-2006 at 11:48 PM
RE: artificial intelligence script(close window) - by CookieRevised on 09-20-2006 at 12:19 AM
RE: artificial intelligence script(close window) - by xsouldeath on 09-20-2006 at 12:27 AM
RE: artificial intelligence script(close window) - by Spunky on 09-20-2006 at 12:30 AM
RE: artificial intelligence script(close window) - by CookieRevised on 09-20-2006 at 12:34 AM
RE: artificial intelligence script(close window) - by Lou on 09-20-2006 at 12:36 AM
RE: artificial intelligence script(close window) - by xsouldeath on 09-20-2006 at 01:39 AM
RE: artificial intelligence script(close window) - by CookieRevised on 09-20-2006 at 01:51 AM
RE: artificial intelligence script(close window) - by xsouldeath on 09-20-2006 at 02:07 AM
RE: artificial intelligence script(close window) - by CookieRevised on 09-20-2006 at 02:13 AM
RE: artificial intelligence script(close window) - by xsouldeath on 09-20-2006 at 03:13 AM
RE: artificial intelligence script(close window) - by xsouldeath on 09-20-2006 at 11:59 PM
RE: artificial intelligence script(close window) - by CookieRevised on 09-21-2006 at 09:38 AM
RE: artificial intelligence script(close window) - by xsouldeath on 09-21-2006 at 12:59 PM
RE: artificial intelligence script(close window) - by Matti on 09-21-2006 at 03:19 PM
RE: artificial intelligence script(close window) - by xsouldeath on 09-21-2006 at 07:31 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On