Sign in to follow this  
Followers 0
Joke758

MSN Contacts COM

3 posts in this topic

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!

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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]

Share this post


Link to post
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
Sign in to follow this  
Followers 0