Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 4th, 2005, 7:57 AM   #1
Savas
Newbie
 
Savas's Avatar
 
Join Date: Sep 2005
Posts: 3
Rep Power: 0 Savas is on a distinguished road
MSN Messenger Plugin

I'm taking on a project to create a plugin for MSN Messenger to change my <Personal Message> to a note like, "Currently playing: Counter Strike Source."

I don't know which would be the best language for this project and if anyone wants to join me or give me a start up would be great.

Savas.
Savas is offline   Reply With Quote
Old Sep 4th, 2005, 9:30 AM   #2
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 3 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
I'm not sure if it would help, but try ResHacking msgslang.dll in the Msn messenger directory.
You can download a free resHacker using google.
When you load the dll into it you can visualy edit MSN messenger and you can change code.

Language to use: C++

GL
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Sep 4th, 2005, 9:58 AM   #3
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3 Polyphemus_ is on a distinguished road
Using resource hacker you can't change code, you can only change resources (like images, string tables etc.).
In Visual Basic you can use the msn type library, and probably there will be an API for C / C++ or whatever language you wanna use. You can also use msg plus, which enables you to create plug-ins.
Polyphemus_ is offline   Reply With Quote
Old Sep 8th, 2005, 2:47 AM   #4
ViOLATiON
Programmer
 
Join Date: Sep 2005
Posts: 58
Rep Power: 3 ViOLATiON is on a distinguished road
I already made an application to do this in Visual Basic .. awhile ago actually.

Since I dont have Visual Basic installed anymore, here's that the .frm file gave me.

Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal Hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long

Private Type COPYDATASTRUCT
 dwData As Long
 cbData As Long
 lpData As Long
End Type

Private Const WM_COPYDATA = &H4A
Public Sub SetMusicInfo(ByRef r_sArtist As String, ByRef r_sAlbum As String, ByRef r_sTitle As String, Optional ByRef r_sWMContentID As String = vbNullString, Optional ByRef r_sFormat As String = "{0} - {1}", Optional ByRef r_bShow As Boolean = True)

  Dim udtData As COPYDATASTRUCT
  Dim sBuffer As String
  Dim hMSGRUI As Long
 
  sBuffer = "\0Music\0" & Abs(r_bShow) & "\0" & r_sFormat & "\0" & r_sArtist & "\0" & r_sTitle & "\0" & r_sAlbum & "\0" & r_sWMContentID & "\0" & vbNullChar
 
  udtData.dwData = &H547
  udtData.lpData = StrPtr(sBuffer)
  udtData.cbData = LenB(sBuffer)
 
  Do
      hMSGRUI = FindWindowEx(0&, hMSGRUI, "MsnMsgrUIManager", vbNullString)
     
      If (hMSGRUI > 0) Then
          Call SendMessage(hMSGRUI, WM_COPYDATA, 0, VarPtr(udtData))
      End If
     
  Loop Until (hMSGRUI = 0)

End Sub

Private Sub Command1_Click()
SetMusicInfo "WHATEVER YOU WANT HERE", "album", "THIS TXT IS AFTER THE HYPHEN"
End Sub

Use it how ever you want.

Mainly, edit this line: SetMusicInfo "WHATEVER YOU WANT HERE", "album", "THIS TXT IS AFTER THE HYPHEN"

So your personal message will be a link, but, in this case, would say:

WHATEVER YOU WANT HERE - THIS TXT IS AFTER THE HYPHEN

Atleast I think that is what you're aiming for .. lol, good luck.
ViOLATiON is offline   Reply With Quote
Old Sep 12th, 2005, 11:13 PM   #5
Savas
Newbie
 
Savas's Avatar
 
Join Date: Sep 2005
Posts: 3
Rep Power: 0 Savas is on a distinguished road
Ok thanks for the source.

I'm thinking you created this for displaying what music your listening to. I'm practically starting from scratch on VB, Meaning i'm taking on this project to learn the language.

One question is what ways is there a possibility of me displaying the text, As its fixed text simply turning on and off when the program runs. do i make sure the program is always listening for the game to run?

Would that be any strain on the system or would there be other ways of doing it..

Iim not quite sure where to start.
Savas is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:54 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC