What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Window Close after Signout

Window Close after Signout
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Window Close after Signout
IF you will never encounter multiple contacts in one chat you can remove the for...loop:

code:
for(; !f.atEnd(); f.moveNext()) {
      var contact1 = f.item();
      if (contact == contact1.Email) {
            Interop.Call("User32", "SendMessageA", chat.Handle, 0x10, 0, 0)
            break;
      }
}
thus, replace all the above with:
code:
var contact1 = f.item();
if (contact == contact1.Email) {
      Interop.Call("User32", "SendMessageA", chat.Handle, 0x10, 0, 0)
}
or thus simple one line:
code:
if (contact == f.item().Email) Interop.Call("User32", "SendMessageA", chat.Handle, 0x10, 0, 0)
.-= A 'frrrrrrrituurrr' for Wacky =-.
08-20-2006 10:49 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Window Close after Signout - by Eagle_Erwin on 08-20-2006 at 09:07 PM
RE: Window Close after Signout - by Spunky on 08-20-2006 at 09:42 PM
RE: RE: Window Close after Signout - by Eagle_Erwin on 08-20-2006 at 10:00 PM
RE: Window Close after Signout - by artfuldodga on 08-20-2006 at 09:48 PM
RE: Window Close after Signout - by Spunky on 08-20-2006 at 09:50 PM
RE: Window Close after Signout - by Spunky on 08-20-2006 at 10:06 PM
RE: Window Close after Signout - by Eagle_Erwin on 08-20-2006 at 10:08 PM
RE: Window Close after Signout - by CookieRevised on 08-20-2006 at 10:20 PM
RE: RE: Window Close after Signout - by Eagle_Erwin on 08-20-2006 at 10:31 PM
RE: RE: RE: Window Close after Signout - by Jesus on 08-20-2006 at 11:19 PM
RE: Window Close after Signout - by mickael9 on 08-20-2006 at 10:22 PM
RE: Window Close after Signout - by Spunky on 08-20-2006 at 10:23 PM
RE: Window Close after Signout - by absorbation on 08-20-2006 at 10:28 PM
RE: Window Close after Signout - by CookieRevised on 08-20-2006 at 10:49 PM
RE: RE: Window Close after Signout - by mickael9 on 08-20-2006 at 11:33 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