What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help - /commands!

Help - /commands!
Author: Message:
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
38 / Male / Flag
Joined: Jul 2005
RE: Help - /commands! [NEW QUESTION!]
quote:
Originally posted by whiz
How can I set it so that if the current user opens a window (there's an email variable called "UserEmail"), the blocker will ignore it?
I don't think it's possible to do that reliably.
The OnEvent_ChatWndCreated event only provides you with a ChatWnd object, AFAIK you can not determine exactly how and why it was opened.

What you could do to "guess" how it was opened, is store each ChatWnd.Handle in a global array, and set up OnEvent_ChatWndReceiveMessage to check who sends the first message to this ChatWnd. If it's not you, you probably didn't open the window.

Please note that above method is not fool-proof at all!
Not only is there no reliable way to check who sent a message to a certain ChatWnd (think Chat-Only names and Custom names etc.), but there's also the possibility the ChatWnd was not opened by a message at all. It could be opened by e.g. a file transfer or a nudge, which don't trigger OnEvent_ChatWndReceiveMessage IIRC.
Man is least himself when he is in his own person. Give him a mask and he will tell you the truth. (Oscar Wilde)
02-07-2009 01:15 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help - /commands! - by whiz on 02-01-2009 at 12:38 PM
RE: Help - /commands! - by matty on 02-01-2009 at 05:53 PM
RE: Help - /commands! - by whiz on 02-02-2009 at 10:59 AM
RE: Help - /commands! - by Matti on 02-02-2009 at 03:30 PM
RE: Help - /commands! [NEW QUESTION!] - by Jesus on 02-07-2009 at 01:15 PM
RE: Help - /commands! - by whiz on 02-15-2009 at 11:45 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