Example:
$oCommunicator = ObjCreate("Communicator.UIAutomation")
$MyName = $oCommunicator.MyFriendlyName
$MyLogin = $oCommunicator.MySigninName
MsgBox(0, 'Example', 'Hi!' & @CR & 'My name is "' & $MyName & '" (e-mail: ' & $MyLogin & ')')
Thank you very much for replying. I had seen something similar at MSDN and I tried this, but got an error that said,
Variable must be of type "Object".:$MyName = $oCommunicator.MyFriendlyName
Your reply was very helpful, I now know this SHOULD work.
I was thinking I was doing it totally wrong with this method. I still get the error, but now I am wondering if I have not installed the API correctly or whether I need to register some DLL or something. When I use OLEVIEW I cannot find a Communicator.UIAutomation object or anything even close. I tried to read about installing the API and SDK for Communicator but I couldn't find much besides download and install the API which I did. Most Microsoft discussion seems focused (surprise) on Visual Studio users.
So I am still scratching my head and trying to get this to work. Any further suggestions about what is missing in my environment would be appreciated. I have Communicator 2007 installed and working on my Windows 7 machine, and I did run the API installion, but still no objects and no worky. Thanks again for the assistance on this.
Dan Sichel.