1 Attachment(s)
Hey can ne1 work this out?
ONLY OPEN THE FILE USING A TEXT EDITOR
Hey right i really need to know how to use these MSN API's or what ever they is. but i cant find info on them anywhere so i found this silly little program which can both send text and send a file.
So i thought *maybe* if i open the file in a txt format then id be able to work a API out... but i was badly wrong :( heres some of the stuff i got which i thought may help....
C:\Program Files\Messenger\msmsgs.exe dunno what thats got todo with it :\
C:\WINDOWS\System32\scrrun.dll just thought id add all DLL's
¤FMsg_OnTextReceived
advapi32.dll
mVBA6.DLL
MSVBVM60.DLL EVENT_SINK_GetIDsOfNames MethCallEngine EVENT_SINK_Invoke Zombie_GetTypeInfo EVENT_SINK_AddRef DllFunctionCall Zombie_GetTypeInfoCount EVENT_SINK_Release EVENT_SINK_QueryInterface __vbaExceptHandler ProcCallEngine
Thats all i could find what i think might have somthing todo with it :\ also there was alot of "RegOpen", "RegClose" ....etc could that have anything todo with it?
Thanx for reading :)
Here is the code, I changed 2 things
Add a command button named cmdSend and a textbox named
txtMessage, I also reformatted the code because when I pasted
it, the form loaded in as a module.
Dim msnTest As New MsgrObject
Dim msnApp As IMessengerApp2
Dim msnIMWindow As IMessengerIMWindow
Dim msnSvc As IMsgrService
Dim msnUsers As IMsgrUsers
Dim msnUser As IMsgrUser
'Changed this to a command button instead of a form load event
Private Sub cmdSend_Click()
On Error Resume Next
Set msnApp = CreateObject("Messenger.MessengerApp")
'Check if logged on
If msnTest.Services.PrimaryService.Status = MSS_NOT_LOGGED_ON Then
msnTest.Logon "[email protected]", "(passwdhidden)", msnSvc
Do While (msnTest.Services.PrimaryService.Status <> MSS_LOGGED_ON) Or (msnTest.UnreadEmail(msnInbox) = -1) Or (msnTest.LocalState = MSTATE_ONLINE)
DoEvents
Loop
End If
'Display info
'Dunno why but if the program has to log msn on it always
'exits the loop too early and reports the wrong info
Debug.Print msnTest.LocalFriendlyName
Debug.Print msnTest.Services.PrimaryService.FriendlyName
Debug.Print msnTest.Services.PrimaryService.ServiceName
If (msnTest.LocalState = MSTATE_AWAY) Then
Debug.Print "IM AWAY"
ElseIf (msnTest.LocalState = MSTATE_ONLINE) Then
Debug.Print "IM ONLINE"
End If
Debug.Print msnTest.UnreadEmail(MFOLDER_INBOX)
Set msnUsers = msnTest.List(MLIST_ALLOW)
For Each msnUser In msnUsers
Debug.Print msnUser.EmailAddress
Debug.Print msnUser.FriendlyName
Debug.Print msnUser.LogonName
If (msnUser.State = MSTATE_ONLINE) Or (msnUser.State = MSTATE_AWAY) Then
'Send online ppl an instant message
'dunno why but getting an error message here
'thus the on error resume next
Set msnIMWindow = msnApp.LaunchIMUI(msnUser)
'Changed this line to a textbox instead of a preset message
msnIMWindow.SendText txtMessage.Text
End If
Next
'Sends that silly "xxxxx wants to talk to you" email
msnTest.Services.PrimaryService.SendInviteMail "(hidden)@hotmail.com", 0, 0, 0
End Sub