What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Is this possible?

Is this possible?
Author: Message:
blindpoint21
New Member
*

Avatar

Posts: 4
37 / Male / –
Joined: Jul 2005
O.P. Is this possible?
Hi!
I was wondering if anyone could make a plugin that would make it so everytime I logged off it would update my name to tell the time that I logged off.  I would appreciate a response either way.

Thanx

[Image: shoot.gif]
[Image: Banner1.png]
07-10-2005 03:33 AM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Is this possible?
That would be difficult since with a Plugin the Unitialize function provided is triggered once you have signed out or exited Messenger. So in actual fact if you tried to change your name it wouldn't work because you are not signed in. You can however make a /x command that will change your name and sign you off/exit messenger for you.

This post was edited on 07-10-2005 at 04:28 AM by matty.
07-10-2005 03:40 AM
Profile E-Mail PM Find Quote Report
blindpoint21
New Member
*

Avatar

Posts: 4
37 / Male / –
Joined: Jul 2005
O.P. RE: Is this possible?
Could anyone help me with Matty's suggestion?
[Image: Banner1.png]
07-10-2005 04:01 AM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Is this possible?
code:
Option Explicit
Public
MessengerAPI As Object

Public Function Initialize(ByVal nVersion As Long, _
                           ByVal sUserEmail As String, _
                           ByVal oMessenger As Object) _
                            As Boolean

    Initialize = True
    Set
MessengerAPI = oMessenger
End Function

Public Function
Uninitialize()
End Function

Public Function
Configure()
End Function

Public Function
GetPublishInfo(ByRef sPluginName As String, _
                               ByRef nCommandCount As Long, _
                               ByRef nTagCount As Long) _
                               As Boolean
    sPluginName = "Change Name and sign off"
    nCommandCount = 1
    nTagCount = 0   
    GetPublishInfo = True
End Function

Public Function
GetPublishCommandInfo(ByVal nCommandIdx As Long, _
                                      ByRef sName As String, _
                                      ByRef sValue As String, _
                                      ByRef sHelp As String)
    If (nCommandIdx = 1) Then
        sName = "Change name and sign off"
        sValue = "xsignoff"
        sHelp = "<new name>"
    End If
End Function

Public Function
GetPublishTagInfo(ByVal nTagIdx As Long, _
                                  ByRef sName As String, _
                                  ByRef sValue As String)
End Function

Public Function
ParseCommand(ByVal sCommand As String, _
                             ByVal sCommandArg As String, _
                             ByVal oConversationWnd As Object, _
                             ByRef sResult As String) _
                             As Boolean

    If
(StrComp(LCase(sCommand), "/xsignoff", vbTextCompare) = 0) Then
        Dim
blnReturn As Boolean
        Dim
strNewName As String
        strNewName = Left(Right(sCommandArg, Len(sCommandArg)-1), Len(sCommandArg)-1)
        blnReturn = SetNewName(strNewName)
        sResult = ""
        ParseCommand = True
        MessengerAPI.SignOut()
        Exit Function
    End If

    ParseCommand = False
End Function


Public Function
ParseTag(ByVal sTag As String, _
                         ByVal oConversationWnd As Object, _
                         ByRef sResult As String) _
                         As Boolean
    ParseTag = False
End Function

Public Function
ReceiveNotify(ByVal sNotifyCode As String, _
                              ByVal sText As String, _
                              ByVal sContactName As String, _
                              ByVal oConversationWnd As Object, _
                              ByRef sTextToSend As String) _
                              As Boolean
    ReceiveNotify = False
End Function

07-10-2005 04:28 AM
Profile E-Mail PM Find Quote Report
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
38 / Male / Flag
Joined: Aug 2004
Status: Away
RE: Is this possible?
You can do this with MsgPlus! itself:

Go to the Preferences panel of MsgPlus! > Message Helpers > Quick Texts

ALIAS:
/mysignout (or whatever you want to call it)

MESSAGE:
/nick Signed out: (!D) (!T)
#3#/signout

When you want to sign out, just type "/mysignout" and it'll do what you want.

(If it didn't change your nickname, try changing the 3 for a higher number (up to 9 is allowed, though))

Edit: or use what Matty gave you.

Edit 2: you can also check out the help on the website. :)

This post was edited on 07-10-2005 at 04:45 AM by L. Coyote.

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

07-10-2005 04:31 AM
Profile PM Find Quote Report
blindpoint21
New Member
*

Avatar

Posts: 4
37 / Male / –
Joined: Jul 2005
O.P. RE: Is this possible?
I think I found where to put all that stuff in at killov, but, I dont know what boxes what goes in.

where do each of these things go individually?

Thanks in advance
[Image: Banner1.png]
07-10-2005 04:39 AM
Profile E-Mail PM Web Find Quote Report
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
38 / Male / Flag
Joined: Aug 2004
Status: Away
RE: Is this possible?
Check it out, I edited my previous message.

Edit: you're welcome :)

This post was edited on 07-10-2005 at 05:42 AM by L. Coyote.

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

07-10-2005 04:42 AM
Profile PM Find Quote Report
blindpoint21
New Member
*

Avatar

Posts: 4
37 / Male / –
Joined: Jul 2005
O.P. RE: Is this possible?
Hey that worked perfectly, Thank you both very much
[Image: Banner1.png]
07-10-2005 05:08 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


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