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

Pages: (2): « First [ 1 ] 2 » Last »
display pictures
Author: Message:
wallawalla
New Member
*

yep

Posts: 6
– / Male / –
Joined: Aug 2005
O.P. display pictures
hey everyone, im new, and i strongly suspect there have already been tons of threads about this, but anyway, i've been working on a plugin today that changes my display picture to the album cover art of whatever song i'm listening to in iTunes.

anyway, i've written a script (in jscript) that takes the song i'm listening to, extracts the art and saves it over a specified file (which should eventually be C:/Program Files/Messenger Plus! 3/Plugins/idp/artwork/art.jpg or something like that). I have also started the plugin, adding commands for enabling and disabling it. What i need to know is the best way to do this:

I need to recall the script every 5-10 seconds or so. (which, being a novice programmer, i have no idea how to do.. although i could easily google it... but i think its probably better to get it all from one place  :p)
I need to refresh my dp. (probably by loading the file as my dp again)
I need to find the messenger plus install directory to find where i should put the art....

The plugin is written in visual basic .NET and i may need to change the script to VBscript, i dont know..

i was wondering if display pictures are part of MSERVICEPROPERTY or something like that...  *-)

anyway, if someone could help me out on any of those 3 things, i would be very grateful.

:)

This post was edited on 08-21-2005 at 09:25 AM by wallawalla.
08-21-2005 09:18 AM
Profile E-Mail PM Web Find Quote Report
DomGrimm
Junior Member
**

Avatar
Woohoo!

Posts: 22
36 / Other / –
Joined: Jul 2003
RE: display pictures
I can't help you:(
But I wish you good luck with the plugin, I've been looking for something like this for a while(Y)
THANKS PATCHOU!


...still laughing at those guys...spyware :lol:
08-21-2005 11:54 AM
Profile E-Mail PM Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: display pictures
erm i like the idea you can ask destruction who uses a refesh in his plugin i could give you his e-mail address if you want :)
08-21-2005 12:00 PM
Profile PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: display pictures
Only thing I can give you is the install path of MSN :)

HKCR\CLSID\{0D81DFEC-5610-4a2b-9B57-FC33D21366F0}\LocalServer32 (default value)

This post was edited on 08-21-2005 at 12:48 PM by Ezra.
[Image: 1-0.png]
             
08-21-2005 12:48 PM
Profile PM Web Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: display pictures
quote:
Originally posted by Ezra
Only thing I can give you is the install path of MSN :)

HKCR\CLSID\{0D81DFEC-5610-4a2b-9B57-FC33D21366F0}\LocalServer32 (default value)

HKLM\SOFTWARE\Microsoft\MSN Messenger\InstallDirecrory

this key gives you the dir and not the file but anyway what wallawalla needed was the msgplus folder path

HKLM\SOFTWARE\Patchou\MsgPlus2\BinDir
08-21-2005 02:37 PM
Profile PM Find Quote Report
wallawalla
New Member
*

yep

Posts: 6
– / Male / –
Joined: Aug 2005
O.P. RE: display pictures
ok cool thanks for that...

now i just really need how to change the display picture...

it says nothing about it in the API documentation.. as far as i can see....

i dont really need a refresh thing, just something that changes the display picture to a certain file, which, if called over and over again, would have the effect of refreshing it
08-22-2005 05:58 AM
Profile E-Mail PM Web Find Quote Report
wallawalla
New Member
*

yep

Posts: 6
– / Male / –
Joined: Aug 2005
O.P. RE: display pictures
i havent finished by the way...

is it just that no one knows how to change a display picture or cant be bothered helping or something?
08-24-2005 05:04 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: display pictures
VB6
code:
'This is just an example for calling the oMessenger object passed through the Initialize Function into a Variable.
'Make sure to set a reference to the MessengerAPI Type Library


Public WithEvents MessengerAPI_Interface As MessengerAPI.Messenger
Public Const MCONTACTPROP_USERTILE_PATH As Integer = 2

Public Function Initialize(ByVal nVersion As Long, _
                           ByVal sUserEmail As String, _
                           ByVal oMessenger As Object) _
                           As Boolean
    Initialize = True
    Set MessengerAPI_Interface = oMessenger
    MessengerAPI_Interface.MyProperty(MCONTACTPROP_USERTILE_PATH) = "%path%"
End Function


VB.Net
code:
    '//
    '// Shared Variables
    '//////////////////////////////////////////////////////////////////////

    Public Const MCONTACTPROP_USERTILE_PATH As Integer = 2
    Public Shared WithEvents oMessenger As MessengerAPI.MessengerClass

    '//
    '// Purpose: Initialization function
    '//////////////////////////////////////////////////////////////////////

    Public Function Initialize(ByVal nVersion As Integer, _
                               ByVal sUserEmail As String, _
                               ByVal oMessenger As MessengerAPI.MessengerClass) _
                               As Boolean
        Sample.oMessenger = oMessenger
        oMessenger.MyProperty(MCONTACTPROP_USERTILE_PATH) = "%path%"
        Initialize = True
    End Function


This post was edited on 08-24-2005 at 06:20 AM by matty.
08-24-2005 06:06 AM
Profile E-Mail PM Find Quote Report
wallawalla
New Member
*

yep

Posts: 6
– / Male / –
Joined: Aug 2005
O.P. RE: display pictures
ok cool thanks  :D

ill get on to it soon
im assuming that sample is the name of the class?
08-24-2005 06:48 AM
Profile E-Mail PM Web Find Quote Report
wallawalla
New Member
*

yep

Posts: 6
– / Male / –
Joined: Aug 2005
O.P. RE: display pictures
alright ive done that..

but a few things are going wrong...

firstly, it only saves the picture file when i start the program, which is probably because i dont have a very good delay function..

is there anything in VB .NET that acts like setTimeout() in javascript?

also, it doesnt load the picture into msn so i dont know whats wrong there either

it doesnt show up in the plugins menu and i cant turn it on or off like i should.... (ie it doesnt accept input from msn)

and yeah...

ill probably need a good plugin writer to answer this...
08-24-2005 09:42 AM
Profile E-Mail PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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