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

automatic nudge
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: automatic nudge
try this out :P:
code:
var closewnd = true; // Close chat window after sending nudge
var email = ""; // Email of the contact. Leave blank for all contacts.

function OnEvent_ContactSignin(Email){
if(Email == email || !email){
var ChatWnd = Messenger.OpenChat(Email);
Interop.Call('User32', 'PostMessageW', ChatWnd.Handle, 0x0111,  689, 0x0000);
if(closewnd) Interop.Call('User32', 'PostMessageW', ChatWnd.Handle, 0x0111,  20001, 0x0000);
}
}
function OnEvent_Initialize(MessengerStart){
if(Messenger.MyStatus>0) OnEvent_SigninReady(Messenger.MyEmail);
}
function OnEvent_SigninReady(Email){
if(email){
var Contact = Messenger.MyContacts.GetContact(email);
if(Contact.Status > 2){
var ChatWnd = Messenger.OpenChat(email);
Interop.Call('User32', 'PostMessageW', ChatWnd.Handle, 0x0111,  689, 0x0000);
if(closewnd) Interop.Call('User32', 'PostMessageW', ChatWnd.Handle, 0x0111,  20001, 0x0000);
}
}
/*Warning: This code may lag your computer to death. Uncomment the proceding block of code if you really want to use it. It will send nudges to ALL online contacts and optionally close the window (see variable closewnd).*/
/*
var online = new Array();
if(!email){
for(var e=new Enumerator(Messenger.MyContacts);!e.atEnd();e.moveNext()){
var Contact = e.item();
if(Contact.Status > 2) online.push(Contact.Email);
}
for(i in online){
var ChatWnd = Messenger.OpenChat(online[i]);
Interop.Call('User32', 'PostMessageW', ChatWnd.Handle, 0x0111,  689, 0x0000);
if(closewnd) Interop.Call('User32', 'PostMessageW', ChatWnd.Handle, 0x0111,  20001, 0x0000);
}
}
*/
}
[quote]
Ultimatess6
: What a noob mod
08-26-2008 09:39 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
automatic nudge - by Wartender on 08-26-2008 at 08:17 PM
RE: automatic nudge - by Spunky on 08-26-2008 at 08:21 PM
RE: automatic nudge - by Wartender on 08-26-2008 at 08:27 PM
RE: automatic nudge - by Spunky on 08-26-2008 at 08:34 PM
RE: automatic nudge - by Wartender on 08-26-2008 at 08:50 PM
RE: automatic nudge - by Spunky on 08-26-2008 at 09:00 PM
RE: automatic nudge - by Wartender on 08-26-2008 at 09:13 PM
RE: RE: automatic nudge - by Spunky on 08-26-2008 at 09:27 PM
RE: automatic nudge - by roflmao456 on 08-26-2008 at 09:39 PM
RE: automatic nudge - by Spunky on 08-26-2008 at 09:42 PM
RE: automatic nudge - by Wartender on 08-26-2008 at 09:43 PM
RE: automatic nudge - by Spunky on 08-26-2008 at 09:46 PM
RE: automatic nudge - by CookieRevised on 08-26-2008 at 11:28 PM
RE: automatic nudge - by Spunky on 08-26-2008 at 11:39 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