What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Multiple Chat Windows, Unique Variables For Each

Multiple Chat Windows, Unique Variables For Each
Author: Message:
Master Jake
New Member
*

Haii

Posts: 7
32 / Male / Flag
Joined: Feb 2009
O.P. Multiple Chat Windows, Unique Variables For Each
Hi guys. I'm sure you've all heard of chat bots such as SmarterChild and stuff which always include games and always include the manicdote game which generates stories (however their censored :(). This is why I redesigned my own version in scripting that allows people to make the same manicdotes but uncensored. The problem is, when someone is answering the questions and inputting their nouns and stuff, if someone else chats with me at the same time it will take the input from them instead. I need a way to allow everyone to do the game at once by generate variables for each chat window seperately (like copying all the variables or something). Any easy way to do this would be nice. Thanks for your help.
02-01-2009 05:34 AM
Profile E-Mail PM Web Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: Multiple Chat Windows, Unique Variables For Each
use an array with the chatwindow/email as the reference for the array?
02-01-2009 05:46 AM
Profile PM Find Quote Report
Master Jake
New Member
*

Haii

Posts: 7
32 / Male / Flag
Joined: Feb 2009
O.P. RE: Multiple Chat Windows, Unique Variables For Each
umm how :)?
02-02-2009 09:57 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Multiple Chat Windows, Unique Variables For Each
js code:
var oChatWnds = {};

function OnEvent_ChatWndCreated(pChatWnd) {
    oChatWnds[pChatWnd.Handle] = {};
        oChatWnds[pChatWnd.Handle].pChatWnd = pChatWnd;
        oChatWnds[pChatWnd.Handle].myVar = 'x';
}

function OnEvent_ChatWndDestroyed(pChatWnd) {
    delete oChatWnds[pChatWnd.Handle];
}

This post was edited on 02-02-2009 at 11:42 PM by matty.
02-02-2009 11:40 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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