O.P. active window
hey how do i grab the the messenge i have just been sent in the active window? so merlin will only read the messege in the avtive chat window
i have tryed
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message){
var MyChatName = Messenger.MyName;
var msg = Message;
if ( ChatWnd != Active ) {
if ( Origin != MyChatName ) {
merlin.Show();
merlin.Play("GetAttention");
merlin.Play("GetAttentionReturn");
merlin.Play("RestPose");
merlin.Speak( Origin + " just said " + msg );
}
any ideas? cheers
This post was edited on 03-08-2007 at 01:07 AM by Gareth_2007.
|