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:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: RE: automatic nudge
code:
function OnEvent_Initialize(MessengerStart){
        if(Messenger.MyStatus > 1){
                OnEvent_SigninReady(Messenger.MyEmail);
        }
}

function OnEvent_SigninReady(Email){
        var v = "Persons@email.com"
        if(Messenger.MyContacts.GetContact(v).Status >= 3)){
                Messenger.OpenChat(v).SendMessage("/nudge");
        }
}

function OnEvent_ContactSignin(Email){
        if (Email == "Persons@email.com"){
                Messenger.OpenChat(Email).SendMessage("/nudge");
        }
}

This should be right. Try to see the changes I've made.

The status property can be either the CONSTANT or the numerical value, although the constant is only supported in 4.60(?) and higher. The status should be either 3 or a higher number if the contact is online. Also, if you're going to use a variable such as v, it's probably best to use it for more than one line OR leave it as a string instead of assigning it altogether. Seeing as you need to use the email address twice, you can set the variable.  I added the OnInitialize function for a very good reason. Lets see if you can tell me why :p

This post was edited on 08-26-2008 at 09:46 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
08-26-2008 09:27 PM
Profile PM 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