What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Silent Messages

Silent Messages
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Silent Messages
quote:
Originally posted by bigbob85
All this talk about ChatWnd is making my head spin, but I think I got a good idea.

I dont think its SendMessage that draws the windows focus, its the OpenChat. So if I dont do that, and just use the ChatWnd Iterator and then see if the contact I want to send it to is in the chat (and there is only 1 person in the chat) to then send the message. Thus, avoiding the OpenChat.
That will only work if there is already a chat with that contact. If there isn't a chat open with the contact, SendMessage (and your script) will fail and produce an error.

Also note that in order to SendMessage to work, the chat window must be the active window and in focus! If it is not, SendMessage will bring the chat window automatically in front too (and restore the previous window when it is done sending). This is how Plus! works.

Also, no matter what you do, do not forget to check with EditChangeAllowed if you actually can send a message to the chat window. This is mandatory! See scripting documentation MsgPlus:: SendMessage.


PS: if the initial goal from the beginning was to only send a message when there is an existing chat window, then in the future please specify such important details. Many stuff depends on what one wants to do exactly, and if one doesn't provide such details, decent help can not be given.

This post was edited on 01-19-2007 at 02:15 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-19-2007 02:07 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Silent Messages - by bigbob85 on 01-15-2007 at 10:06 AM
RE: Silent Messages - by Felu on 01-15-2007 at 10:48 AM
RE: Silent Messages - by bigbob85 on 01-15-2007 at 11:11 AM
RE: Silent Messages - by Plik on 01-15-2007 at 11:19 AM
RE: Silent Messages - by bigbob85 on 01-16-2007 at 10:01 AM
RE: Silent Messages - by Felu on 01-16-2007 at 02:09 PM
RE: Silent Messages - by MrT on 01-17-2007 at 04:26 PM
RE: Silent Messages - by Eljay on 01-17-2007 at 04:29 PM
RE: RE: Silent Messages - by markee on 01-18-2007 at 12:26 AM
RE: RE: RE: Silent Messages - by CookieRevised on 01-18-2007 at 03:53 AM
RE: Silent Messages - by bigbob85 on 01-19-2007 at 12:31 AM
RE: RE: Silent Messages - by CookieRevised on 01-19-2007 at 02:07 PM
RE: Silent Messages - by bigbob85 on 01-19-2007 at 11:12 PM
RE: Silent Messages - by CookieRevised on 01-20-2007 at 03:20 AM
RE: Silent Messages - by bigbob85 on 01-20-2007 at 08:44 AM


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