quote:
Originally posted by -dt-
er just check for it on received message
code:
function OnEvent_ChatWndReceiveMessage (wnd, origin, msg){
switch(msg){
case "!xxx" : wnd.SendMessage(AzureusInfoFetch()); break;
}
}
(the function name may be incorrect, since I'm unable to download the scripting docs here )
That is very silly as the only way it will work (due to async) is to freeze messenger while it gets it
What you need to do is parse the chat window object through all of your functions as an extra parameter and then at the end of AzureusInfo() you can send it to that chat window using the SendMessage method of that chat window object you parsed through. I would edit the code to show you but I'm feel lazy