All Forums >> [Scripting] >> Post a VBScript >> VBScript Parser system for MSN Messenger (MEWS) Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I'm not really sure what forum I had to post this in, so feel free to move it to a more appropiate one. Anyway, I think this might be interesting to VBScripters and users of MSN Messenger (and Messenger Plus).
I created a plugin for Messenger Plus (a famous addon for MSN Messenger), called Messenger Web Services (MEWS). This plugin can obtain all kinds of information from the internet and send it to your MSN buddies. For example, you can type '/xmews dictionary emoticon'. MEWS will then obtain the meaning of 'emoticon' from www.dictionary.com, and send the meaning to your contacts, as shown here:
What does this have to do with visual basic script? The nice thing is, is this plugin uses so-called 'parsers', little .vbs files, each supplying a different webservice. The parser above is obviously called 'dictionary'. Because of the MEWS API (application programming interface), it's very easy to write your own parsers. The dictionary parser just takes a few lines:
It looks up the right search url at dictionary.com. MEWS then sends a DOMDocument (XML) object to the 'parse(xml)' function. The parse function filters the right text from the document, (at dictionary.com, the explanation seems to be the 'table' node after the first 'h2' element. That's all! I wrote an API tutorial at http://www.msgweb.nl/en/MSN_Projects/MEWS/Tutorial/ , there you can learn all about writing your own parsers. More information about the plugin is available here. Remember it's a plugin for Messenger Plus, which can be found at http://www.msgplus.net
< Message edited by Juzzi -- 9/29/2005 1:48:31 AM >
Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
Very interesting. I am not a Messenger user, so would not be able to use this, but the parse and run subs could be useful. Do you by any chance have an example of using them in a stand alone script?
_____________________________
Mike
For useful Scripting links see the Read Me First stickey!
Very interesting. I am not a Messenger user, so would not be able to use this, but the parse and run subs could be useful. Do you by any chance have an example of using them in a stand alone script?
Unfortunately there's no stand alone version of MEWS available at this moment. I'm quite busy at the moment, but I might release a standalone version later on.