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

On Connection
Author: Message:
Fröt
Junior Member
**

Avatar
No

Posts: 16
37 / Male / –
Joined: Feb 2005
Status: Away
O.P. Huh?  On Connection
Hi!

I have to change the display name for one time in a day.For this i must check if day past and if past change the display name on connection..

I did a MsgPlus! command ("/x..").

Shortly;

How can i give a command to msn in connection! or when connected.

or

what is the func for understand the user is connected to msn server..

thanks

I am using Visual Basic v6




I suppose it was very complicated!

Alright;

How can i create a loop to check if day's past and act.

This post was edited on 02-12-2005 at 07:15 PM by Fröt.
Utúlie'n aurë! Aiya Eldalië ar Atanatári, utúlie'n aurë!
02-12-2005 06:55 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: On Connection
code:
Private MessengerAPI
Option Explicit

Public Function Initialize(ByVal nVersion As Long, ByVal sUserEmail As String, ByVal oMessenger As Object) As Boolean
    Initialize = True
    Set MessengerAPI = oMessenger

    If MessengerAPI.MyStatus <> MISTATUS_OFFLINE Then
        retval = SetNewName("New Name")
    Endif
End Function

If that will check to see if the user is logged into Messenger if it is you change change the name when the Plugin is initialized.

Also please try to refrain from double posting. Use the [Image: edit.gif] button to edit your posts.

Edit: Now here is some count down code for you.
code:
DateDiff("d", Now, "12/12/2005")
This will tell you how many days you have till 12/12/2005. You can store a value in the registry on the last day it was changed then change it accordingly.

This post was edited on 02-12-2005 at 07:31 PM by matty.
02-12-2005 07:19 PM
Profile E-Mail PM Find Quote Report
Fröt
Junior Member
**

Avatar
No

Posts: 16
37 / Male / –
Joined: Feb 2005
Status: Away
O.P. RE: On Connection
Matty/

My countdown code is already done. thank you


my code is now looking like this:
code:
Dim retval
Public Function Initialize(ByVal nVersion As Long, ByVal sUserEmail As String, ByVal oMessenger As Object) As Boolean
Set objMessenger = oMessenger
    Initialize = True
     If objMessenger.MyStatus <> MISTATUS_OFFLINE Then
        retval = SetNewName("New Name")
    End If
End Function


i opened the msn to try it but nothing happened !!


ps.in previous entry,accidentally i pressed quote instead of edit..sorry.
Utúlie'n aurë! Aiya Eldalië ar Atanatári, utúlie'n aurë!
02-12-2005 07:40 PM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: On Connection
If you're using VB, use the OnMyStatusChange event.
[Image: spartaafk.png]
02-12-2005 09:25 PM
Profile PM Web Find Quote Report
Fröt
Junior Member
**

Avatar
No

Posts: 16
37 / Male / –
Joined: Feb 2005
Status: Away
O.P. RE: RE: On Connection
quote:
Originally posted by raceprouk
If you're using VB, use the OnMyStatusChange event.





hmmm

how can i use it eheh
Utúlie'n aurë! Aiya Eldalië ar Atanatári, utúlie'n aurë!
02-12-2005 09:38 PM
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