Develop,your,own,MSN,java,clie computer Develop your own MSN java client.


Gone are those times when the companies and the organisations didn't need a hi-tech system to handle them. Owing to the considerable increase in the business sector and thus, an enormous increase in the complexity of the organisational struc ----------------------------------------------------------Permission is granted for the below article to forward,reprint, distribute, use for ezine, newsletter, website,offer as free bonus or part of a product for sale as longas no changes a


Now, use msnmlib 1.2(the website is in Korean), you can write programs as client to MSN servers. You can write msn robots or your own MSN Messenger use Java. Here I have a very short tutorial on how to use msnmlib 1.2, and my Java development IDE is Eclipse 3.0 Prepare:If you had already downloaded msnmlib 1.2 package from the offical project website,  then unzip it to any folder on your HDD.Here I use d:java_devcommon ,you will get a jar file: msnm.jar.Otherwise, you have to download the latest version of msnmlib from the offical web site or the project page on sourceforge First step, open your Eclipse IDE and use New Project wizard to create a new java project in your default workspace(ofcoz, you can use another workspace), and name your project(here I use jRCS,which means java Realtime Customer Servcie System) Second, In Eclipse, Select menu Window--> Prefence, expand the Java node in the left treeview, and then expand Build path node in Java node, and then select node User Libraries. We will add a new user library refer to the path where you place your msnmlib jar file. Click new... to add a new user library MSN_LIB and click Add Jars... to make the user library variable refer to msnmlib jar file:d:java_devcommonmsnm.jar Now, edit properties of project jRCS by select the context menu of jRCS node in the Project Explorer. Here we will edit the Java Build Path and add a new library for this project. Of coz, we will add the pre-defined User Library MSN_LIB here. Ok, finally, we have our development environment set up. It's time for coding! Coding Step 1: Create your own MsnAdapter class for an adapter that can listen to the events fired by MSN Messenger. You should make you adapter class extend from the parent class rath.msnm.event.MsnAdapter. the MsnAdapter class has more the 10 methods for event listening. but you have not to implement all the methods, and by user Eclipse New Class Wizard, it is not a hard job to implement a lot of methods. For short and easy, We only implement method MsnAdapter.instantMessageReceived(SwitchboardSession ss, MsnFriend friend,            MimeMessage mime). Method instantMessageReceived is invoked by the MsnMessenger instance every time when you receive a new message (MimeMessage) from MsnFriend. Here is my code to reply to the friend "How are you doing": public class MSNAdapter extends MsnAdapter { MSNMessenger msn; public MSNAdapter(MSNMessenger msn) {this.msn = msn;} public void instantMessageReceived(SwitchboardSession ss, MsnFriend friend, MimeMessage mime) { System.out.println(friend.getFriendlyName() +" send me some msg:"+mime.getMessage()); try { // create a new message MimeMessage mm = new MimeMessage(); // remember to append the trail to // your message mm.setMessage("How are you doing?"); // set the message kind to MESSAGE -_-!!! // you have to do this. mm.setKind(mm.KIND_MESSAGE); if (robot.msn.sendMessage(mm,ss)) { // message sent successfully System.out.println("send msg ok!"); }else{ // failed System.out.println("send msg faild!"); } }catch(Exception e){ e.printStackTrace(); } }} Coding Step 2: Write a public class with the static main method as your own msn client. public class Client { public static void main(String[] args) { Email = "[email protected]"; Password = "you_msn_account_password"; // create a new MSNMessenger instance msn msn = new MSNMessenger(Email,Password); // set the initial status to online.msn.setInitialStatus(UserStatus.ONLINE);// register your pre-created adapter to msn msn.addMsnListener(new MSNAdapter(msn)); // login into the msn network msn.login(); System.out.println("Waiting for the response...."); }}Coding Step 3: Debug or run your application.In the context menu of project jRCS,  select Run --> Java Application, Eclipse will compile the code and run the application in the  Console. If you have your msn account set properly, and you have another msn account that add this msn account as contact, you will see this msn account log in, and then you can send some message to this contact as you wish, how ever the Contact will only and always answer you "How are you doing?".*_^

Develop,your,own,MSN,java,clie

computer

Equipment Rental Software – Features And Cost

Equipment rental management software is an essential thing these days for any equipment rental company.A well-developed equipment rental software provides you with a variety of features that can really help you maintain and organise your cus ...

computer

5 Big Reasons Why I Migrated From Angularjs To React

I have 5 main reasons for my angularjs to react migration. No, it's not a comparison on which is better. A comparison between apples and oranges would make no point. React is a library, and angular is a framework. Both can do stuff in their ...

computer

How to troubleshoot McAfee error 2318?

Security software means McAfee! For many computer users, McAfee antivirus is the only choice for security software as it provides all the features and tools which are necessary for device and data protection. This robust antivirus merely sho ...

computer

Manage Multiple Counter With AlignBooks Point of Sale

Fulfilling your businesss needs which can grow your firm is our aim. AlignBooks is better known for providing a strong pillar to newly started or midway businesss. Those companies who dont want to fall back with irregularity manage the inven ...

computer

How to Autoplay Embedded YouTube Videos

Source: How to Autoplay Embedded YouTube VideosEmbedding a video or audio enables the users to share their videos with any of their preferred sites or any social networking platforms. They can do so by copying the embedded link of the parti ...

computer

3 Major Mistakes to Avoid in Retail Business

Truth be told, nearly half of the retail businesses survive longer than four years and which can be something to ponder for a newbie before stepping into the industry. However, this being said, it is also true that you can excel in the indus ...

computer

Start Your Own Computer Repair Business

1. Know your street value. In the early 90's, running a PC repair business centered around selling parts and products, with service on the side. Today, it's about selling hours. If you run a business, you need to consider the X3 rule. That m ...

computer

How Establishments Show Up in Restaurant Searches

The revolutionary rise of technology has made things easy-peasy for consumers in the restaurant industry. Unlike the old days, the availability of innumerable platforms has made it possible for diners to choose from various searching options ...

computer

GuildWars 2 :

The last expansion pack for Guild Wars 2 was Path of Fire, which was released in 2017 and brings you a new enemy-Balthazar, the evil god of war. Although this doesn't sound like another expansion pack currently in production, some fans ma ...

computer

Customer Support at the time of COVID-19 Pandemic

COVID-19 is the worst crisis of our time as we observe social distancing protocols being imposed all around the world. While these measures are a step in effectively managing the COVID-19 pandemic, Hospitality and Retail businesses are confr ...

computer

How to Choose a Contract Management Solution (CLM)?

Contract life cycle management (CLM) systems can simplify and automate contract creation, negotiation, execution and storage. They are an intelligent alternative to the tedious hand tools formerly used for these tasks, which lacked visibili ...

computer

Contacting Google Live Person to Resolve Your Issues

Users are fond of all the Google supported products and look forward to the best services. Also, Google as a whole has never disappointed its users and helped them at every point with its commendable services. Also, being a customer-oriente ...

computer

how to uninstall discord

How to Uninstall Discord in Windows 10? has supported open source technologies, our tool is secure and safe to use. To uninstall a discord from your windows, you'll use this method which is given below.USING THIRD PARTY TOOLS1. Firstly, you ...