How to Write a Live Messenger Script

Scripting in MSN Live Messenger lets you create interactive "bots" that reply to users. MSN Live scripts are programmed in the C development language, and you can use them on your own Live Messenger account, or distribute them for others to use. MSN Live Messenger scripting can be accomplished using Windows Notepad or a third-party application that color-codes the text.

Instructions

    • 1

      Click the Windows "Start" button and select "All Programs." Click "Accessories," then click "Notepad" to open your text editor.

    • 2

      Type the event code that loads the script when Live Messenger is started. Type the following code into Notepad:

      function OnEvent_Initialize(MessengerStart)

      {

      }

      All of your scripting code is placed within the brackets.

    • 3

      Type the action for the script. In this example, a message that says "Hello World" is displayed in the Live Messenger window. Type the following code:

      MsgPlus.DisplayToast("Hello World");

    • 4

      Press "Ctrl+S" to save the script. In the opened window, type "script.js" for the file name. Save the file in the "Program Files\MSN" directory. This is the directory for the MSN execution files.

    • 5

      Start MSN Live Messenger. Notice that the "Hello World" message pops up as soon as you start the service.

Related Searches:

References

Comments

You May Also Like

Related Ads

Featured