View Poll Results: MSN coding, you prefer which

Voters
3. You may not vote on this poll
  • MSN interface (import the typelibrary)

    1 33.33%
  • tcp socket programming

    1 33.33%
  • Jabber com object

    1 33.33%
  • other...

    0 0%
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 15 of 46

Thread: MSN coding (aka why people look for MD5)

  1. #1

    MSN coding (aka why people look for MD5)

    hier ga je dan

    2 manier om msn te programmeren vanuit delphi:

    [1] The MS-preffered way:
    -you have to own a copy of the msn-client app which u can download from de msn-site;
    -now in delphi, import-type-library, and import the msn.exe and there u have the interfaces of de msn-object-model;
    -now just use this as u would in com-programming
    for more info about the interfaces: http://msdn.microsoft.com/downloads/.../359/topic.xml (or search msdn for: "msn interfaces")

    BUT: still you have the annoying fact that msn is integrated in whole damn win os, and so we go for method 2 (below)

    -------------------------------------------------------------------------------
    [2] The REAL-way:
    This involves some serious tcp-socket programming. U can use the delphi tcp socket component for this purporse.

    The msn server architecture consist of three server apps:
    - the Dispatch Server - Initial point of connection
    (can be found on tcp server "messenger.hotmail.com" on port "1863")
    - Notification Server - This is where the entire session is maintained
    - Switchboard Server - Gateway between users for chat.

    The protocol is textbased so it is not that hard...

    have fun...
    [greetings from paramaribo-suriname]


    BTW: http://www.venkydude.com/articles/msn.htm
    (now that won't be a problem for us DELPHI - PEOPLE)

  2. #2
    someone on delphi3000 said:
    On Torry.net you can find a complete Delphi application that acts as MSN.
    It's good and free.
    Respond


    RE: Look on Torry.net
    chiefClaudio Hira (May 29 2002 2:35PM)

    yep, go get it for a code example of method 2, this is a delphi-code implementation

    btw also based on the same info it seems (refers to same urls for source info)

    nice find
    Respond

  3. #3
    notice-itter SvG's Avatar
    Join Date
    Apr 2002
    Location
    's-Hertogenbosch
    Posts
    4,865
    ohoh, De link is bij mij dood. Jammer. Erg jammer. Leek me erg leuk om zelf MSN te programmeren.

    als iemand kan vertellen of de link fout is of gewoon niet meer op internet staat, wilt die gene het dan alstublieft zeggen.
    !

  4. #4
    Senior Member PsychoMark's Avatar
    Join Date
    Nov 2001
    Location
    Raamsdonksveer
    Posts
    10,269
    De link is hier nu ook even dood, jammer, want ik weet niet of ik deze opgeslagen had, laatste keer dat ik keek was het geupdate naar het v7 protocol. In ieder geval heb ik dan v5 nog wel lokaal gebackuped. De URL is in ieder geval goed...

    Het protocol is voorderest niet gek lastig, ik heb zelf een PascalScript-based bot gemaakt met Delphi die inlogt op de MSN Messenger server via TCP/IP (geen COM zut dus)...


    [Edit]

    Na een F5 deed de site het weer, snel even backupen dus, je weet maar nooit



    [Edit2]

    Krijgt iemand het trouwens voor elkaar om de MSN type library te importeren in Delphi? Ik wil al een tijdje een addin maken, met VB lukte me dit vlekkeloos (ik en nog iemand waren zo'n beetje de eersten die ontdekten dat in msmsgs.exe een type library zat in de tijd dat MS dat nog niet openbaar maakte ), maar Delphi weigert 'm te importeren, krijg een "missing type" error...
    Qui custodiet ipsos custodes

  5. #5

    MSN tcp protocol issues

    create additional features for the msn-delphi-clone found at torry's
    (see also my prev msn-article for also a ref to a delphi-code sample on torry)

    ============================
    [1]Connecting to msn server:
    =============================
    Connect: messenger.hotmail.com 1863
    >>> VER 0 MSNP7 MSNP6 MSNP5 MSNP4 CVR0
    <<< VER 0 MSNP7 MSNP6 MSNP5 MSNP4 CVR0
    >>> INF 1
    <<< INF 1 MD5
    >>> USR 2 MD5 I example@passport.com
    <<< XFR 2 NS 64.4.12.132:1863 0
    Disconnect

    Hier is MD5 het encryptie algoritme

    =================================
    [2]Get to the notification server:
    ==================================
    Connect: 64.4.12.132 1863
    >>> VER 3 MSNP7 MSNP6 MSNP5 MSNP4 CVR0
    <<< VER 3 MSNP7 MSNP6 MSNP5 MSNP4 CVR0
    >>> INF 4
    <<< INF 4 MD5
    >>> USR 5 MD5 I example@passport.com
    <<< USR 5 MD5 S 1013928519.693957190
    >>> USR 6 MD5 S 23e54a439a6a17d15025f4c6cbd0f6b5
    <<< USR 6 OK example@passport.com My%20Screen%20Name 1
    >>> CHG 7 NLN
    <<< CHG 7 NLN
    Continue Session . . .


    ==============================
    [3] Change status msn user:
    ==============================
    >>> CHG 8 AWY
    <<< CHG 8 AWY
    >>> CHG 9 NLN
    <<< CHG 9 NLN
    >>> CHG 10 HDN
    <<< CHG 10 HDN

    NLN Online
    FLN Offline
    HDN Appear Offline
    IDL Idle
    AWY Away
    BSY Busy
    BRB Be Right Back
    PHN On the Phone
    LUN Out to Lunch

    ================================
    [4] contactspersonen
    ================================
    There are four types of contact lists, each with a two letter code.

    FL Forward List - Users on your contact list.
    RL Reverse List - Users who have you on their contact list.
    AL Allow List - Users who are allowed to see your status.
    BL Block List - Users who are not allowed to see your status.

    If there are no users on the requested list, the server will reply with 0 for both the user number and the total number of users, and there will be no fifth or sixth parameter. Below are some exampes of requesting lists.

    >>> LST 10 FL
    <<< LST 10 FL 21 1 3 example@passport.com Mike 0
    <<< LST 10 FL 21 2 3 name_123@hotmail.com Name_123 2
    <<< LST 10 FL 21 3 3 myname@msn.com My%20Name 0
    >>> LST 11 BL
    <<< LST 11 BL 3 0 0

    =====================================
    [5] change your screen-name
    ======================================
    >>> REA 25 example@passport.com My%20New%20Name
    <<< REA 25 115 example@passport.com My%20New%20Name
    >>> REA 26 example@passport.com ****
    <<< 209 26



    ================================================== ===============
    [ErrCodes]When something goes wrong, the server sends an error command:
    ================================================== ==============
    200 Syntax error
    201 Invalid parameter
    205 Invalid user
    206 Domain name missing
    207 Already logged in
    208 Invalid username
    209 Invalid fusername
    210 User list full
    215 User already there
    216 User already on list
    217 User not online
    218 Already in mode
    219 User is in the opposite list
    280 Switchboard failed
    281 Transfer to switchboard failed


    300 Required field missing
    302 Not logged in


    500 Internal server error
    501 Database server error
    510 File operation failed
    520 Memory allocation failed


    600 Server is busy
    601 Server is unavaliable
    602 Peer nameserver is down
    603 Database connection failed
    604 Server is going down


    707 Could not create connection
    711 Write is blocking
    712 Session is overloaded
    713 Too many active users
    714 Too many sessions
    715 Not expected
    717 Bad friend file


    911 Authentication failed
    913 Not allowed when offline
    920 Not accepting new users


    search google for MSN protocol for more info ...

  6. #6
    Heb hier wel een aantal simpele codes in VB waar berichten mee verstuurd kunnen worden en ontvangen. Hierbij moet msn wel aanstaan dus op een of andere manier hooked ie uit je msn applicatie.
    Ditzelfde wil ik in delphi berijken.
    heeft iemand hier ervaing mee?

  7. #7
    Dit klinkt leuk. Als ik tijd ehb ga ik het ook ff proberen.
    Every atom in our body, was once part of a star

  8. #8
    Niemand ervaring met deze maniet van hooken? Ik zou niet eens weten hoe hooke opzich werken. heb alleen ooit een key log code ervoor gezien. alleen uit applicaties stuff halen zou ik niet weten

    Originally posted by DeBug
    Heb hier wel een aantal simpele codes in VB waar berichten mee verstuurd kunnen worden en ontvangen. Hierbij moet msn wel aanstaan dus op een of andere manier hooked ie uit je msn applicatie.
    Ditzelfde wil ik in delphi berijken.
    heeft iemand hier ervaing mee?

  9. #9
    Senior Member PsychoMark's Avatar
    Join Date
    Nov 2001
    Location
    Raamsdonksveer
    Posts
    10,269
    De meeste dingen kan je wel door de COM type library te importeren die in msmsgs.exe zit, maar zoals ik al zei, ik heb het met Delphi nog niet voor elkaar gekregen, VB wel, daar heb ik toen een AutoResponder mee geschreven... (nu zijn er honderden van :S)
    Qui custodiet ipsos custodes

  10. #10
    ja man ik dus ook. vb is dat super makkelijk.

  11. #11

    Ben em ook aant make

    Ik ben ook een MsN Bot te maken... en ik vindt dit ZEER handig om te weten... maar wat moet ik nou precies typen als ik van die popups wil ( bijv Hoi ( komt online ) ik (komt online) ben (komt online) axel (komt online )

    ik heb 4 edit boxen: en daarboven 2 knoppen:

    Use text 1 / 2
    use text 1/ 4
    _________
    |________|
    _________
    |________|
    _________
    |________|
    _________
    |________|

    Ik draai WIN XP, en gebruik delphi: 6.0 Help Plz
    Greetz Axel

  12. #12
    notice-itter SvG's Avatar
    Join Date
    Apr 2002
    Location
    's-Hertogenbosch
    Posts
    4,865
    Bekijk deze site eens:



    Een site dus

    hiermee kun je een MSN-look-a-like popup maken Erg mooite tool
    !

  13. #13

    ik zie het ja

    Ik zie het ja, jammer dat ie het niet doet... kan iemand mij helpen plz??
    Greetz Axel

  14. #14
    what's doesn't work? (put the code with the Err)

    i dl this from torry.net and works fine..

  15. #15
    notice-itter SvG's Avatar
    Join Date
    Apr 2002
    Location
    's-Hertogenbosch
    Posts
    4,865
    Ik denk niet dat het een Error is, maar hoe de popups kunnen worden gemaakt, is mij ook niet helemaal duidelijk
    !

Page 1 of 4 1 2 3 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MSN protocol versie
    By rckoenes in forum NLDMSNP
    Replies: 19
    Last Post: 18-Jan-04, 19:55

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •