What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Creating Plugin [Help Req. Please]

Creating Plugin [Help Req. Please]
Author: Message:
XM4ST3RX
Full Member
***

Avatar
DJ Scoop!

Posts: 172
Reputation: 12
38 / Male / –
Joined: May 2003
O.P. Creating Plugin [Help Req. Please]
Hi,

I'm currently creating a plug-in named "Apptify" that will notify users of which app's users running Apptify are currently running (selected app's with custom away msg).

Now because of the way im doing it, im trying to open a conversation with a random contact which is on the allow list and send a msg.

But the code im using doesnt seem to be working fully and was wondering if someone could help me please.


code:
Dim iCont As IMessengerContact
                    For Each iCont In modAppList.MSGR.MyContacts
                        If iCont.Blocked = False Then
                            'modAppList.MSGR.InstantMessage iCont.SigninName
                            MsgBox "ok"
                            MsgBox iCont.SigninName
                        Exit For
                        End If
                    Next


What happens is the plugin scans the list of running process's to find out if the users selected app's are running or not, if it is then it will procede to the code above. (every X seconds)

What happens with the code above is i recieve 1 msgbox with the value "ok", but then when it should scan again and find it again, it doesnt.. messenger freezes. Also im wondering why iCont.SigninName isnt retrieving the contacts email address.

I hope this is understandable and thanks in advance for anyones help.


Kind Regards,
XM4ST3RX
06-14-2005 07:08 PM
Profile E-Mail PM Web Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
21 / Other / Flag
Joined: Jul 2003
RE: Creating Plugin [Help Req. Please]
that wont show a random contact btw...

i had a little play around and came up with this..

code:
Dim nRandom As Long
Dim num, count  As Integer

Dim MSNC As IMessengerContact
Dim MSNCs As IMessengerContacts
Set MSNCs = MessengerAPI.Messenger.MyContacts

num = MessengerAPI.Messenger.MyContacts.Count
nRandom = Int(Rnd * num)
count = 1
For Each MSNC In MSNCs
If count = nRandom Then
If MSNC.Blocked = False Then
'MessengerAPI.Messenger.InstantMessage(MSNC.Siginname)
Msgbox "Ok" & vbnewline & MSNC.Signinname
End If
Else
count = count + 1
End If
Next

06-14-2005 07:28 PM
Profile PM Web Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: Creating Plugin [Help Req. Please]
quote:
Originally posted by Stigmata
that wont show a random contact btw...
yea it doesnt have to actually be random, the code just finds the first person who's in the contact list who isn't blocked.
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
06-14-2005 08:42 PM
Profile E-Mail PM Web Find Quote Report
XM4ST3RX
Full Member
***

Avatar
DJ Scoop!

Posts: 172
Reputation: 12
38 / Male / –
Joined: May 2003
O.P. RE: Creating Plugin [Help Req. Please]
Hi,

MSN Messenger still causes an error and has to quit.
Someone pleaaase helpp!!! :(


Kind Regards,
XM4ST3RX
06-14-2005 08:46 PM
Profile E-Mail PM Web Find Quote Report
Yousef
Full Member
***

Avatar
(previously known as Juzzi)

Posts: 487
Reputation: 19
35 / Male / Flag
Joined: Jul 2004
RE: Creating Plugin [Help Req. Please]
Add me to msn (see profile), I might be able to help you :)
Developer of BuddyFuse: Google Talk, Twitter and Hyves in Windows Live Messenger
Ex-Microsoft intern and Windows Live Developer MVP in 2007 & 2008
06-14-2005 09:16 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