quote:
Originally posted by Eljay
quote:
Originally posted by MrT
...
if (you have a chat window with your contact)
{ send message }
else
{ open chat window
send message }
-> sendmsg("smarterchild@hotmail.com","hi")
That is what OpenChat already does though...
quote:
Originally posted by Scripting Documentation
The Messenger:: OpenChat function opens a chat window with the specified contact. If a chat window with this contact is already opened, the window is activated.
The window does become activated but there is a problem that the chat window object isn't returned and hence why MrT's code is needed unfortunately.