What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Sending message without opening window..

Sending message without opening window..
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Sending message without opening window..
quote:
Originally posted by Deco
Is there a way to do that?

I know about sending it like this:

myWnd.SendMessage(Msg);
myWnd.SendMessage("/close");

But I needed something that didn't bring the window up because it takes focus out of my program and that messes things up for me.


Thanks
The problem in your request is that messages need to be send to a contact (sounds strange as I write it :p).

What I mean is: in order to send a message to a contact you, or messenger or whatever else for that matter, must open a session to that contact. This can only be done:
1- by opening a conversation window
2- by making your own protocol talking thingie which opens the session, talks to the switchboard, deals with server messages, etc

The latter is extremely difficult, and will almost result in your own IM client compatible with the Mssenger protocol anyways. So not so doable in practice or for this purpose.

The former is the only thing you can do. A trick you could do is hiding the chat window once you opened it. But you still need to open it and thus it will stil be 'visible' to the user (even if it was for a brief 100 milliseconds). Not to mention you need to take a lot of issues into account also (eg: make sure the contact is online, he isn't blocked, or check you don't accidently send an SMS, etc).

If it is just to prevent the chat from stealing the focus: that's the way the Plus! script engine works. Plus! _needs_ to bring the chat window in focus in order to be able to send a message. However, once this has been done it _should_ put the focus back to what it was.

This post was edited on 10-18-2006 at 03:41 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-18-2006 03:39 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Sending message without opening window.. - by Deco on 10-17-2006 at 08:50 PM
RE: Sending message without opening window.. - by Chris4 on 10-17-2006 at 09:12 PM
RE: Sending message without opening window.. - by Chris4 on 10-17-2006 at 09:32 PM
RE: Sending message without opening window.. - by Deco on 10-18-2006 at 02:40 PM
RE: Sending message without opening window.. - by Felu on 10-18-2006 at 03:03 PM
RE: Sending message without opening window.. - by Deco on 10-18-2006 at 03:21 PM
RE: Sending message without opening window.. - by CookieRevised on 10-18-2006 at 03:39 PM
RE: Sending message without opening window.. - by Deco on 10-18-2006 at 03:49 PM


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