Jump to content

MSN Contacts COM


Joke758
 Share

Recommended Posts

Ok, I want to make a function to get my msn contacts.

Here my script:

Global $oMessenger = ObjCreate("Messenger.UIAutomation.1")
ImportContact()


Func ImportContact()
     $contacts = $oMessenger.MyContacts
     Msgbox ( 0, "test", $contacts )
 EndFunc

It returns an object but I want a value ;)

In VB, this code works.

Set msn = New MessengerAPI.Messenger
Set msncontacts = msn.MyContacts
Dim msncontact As IMessengerContact

but I don't know how to use the last line (dim as)

Help me please :whistle:

[u]My Programs:[/u]Word Search Creator - Make your own Word SearchShortHand - Hide a secret message in a jpg fileHex Editor - Edit your Binary fileIncrease file size - Increase the size of any filesArt Generator - A program that generate random picture[u]My Functions:[/u]16-Bits Hash - My Hash function similar to MD5Probabilities - My probabilities function (factorial, permuation, combination)_GetDate() - Convert a date to a day of the week_Base(), _Dec() - Convert a number in any base (bin, oct, hex, dec). Create your own!

Link to comment
Share on other sites

Ok, I want to make a function to get my msn contacts.

Here my script:

Global $oMessenger = ObjCreate("Messenger.UIAutomation.1")
ImportContact()
Func ImportContact()
     $contacts = $oMessenger.MyContacts
     Msgbox ( 0, "test", $contacts )
 EndFuncoÝ÷ Økz۫Ƨ¡¸ÞrÖî´Ö¯j["uA¶¬r^Âä±Êy'­É

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

Edit: Never mind, Dale beat me to the punch.

-S

Edited by Locodarwin
(Yet Another) ExcelCOM UDF"A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly...[indent]...specialization is for insects." - R. A. Heinlein[/indent]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...