Hey George,
Lotus finally got off their a$$es and did some things with the latest version to enhance the COM interface to Notes. Starting with version 5.0.2b, there is a new COM server called Lotus.Notessession (instead of Notes.Notessession in version 4.X).
The new COM server has an Initialize method that accepts a password parameter. No more dialog!
Any chance of you upgrading at Shaw?
>< s >
>I hate Lotus Notes. So much so that I use Outlook on top of it. Unfortunately, there are times when I actually do have to use it. One of the things I hate most about it is the braindead log in dialog. In general I hate log in dialogs, and this one in particular. Unlike ccMail, there didn't seem to be anyway around having to deal with it...until now. Here's a VBScript file (requires the Windows Script Host, of course) that'll launch Notes and supply it with the password.
' Notes.vbs
>' Launch Lotus Notes and supply password
>
>Dim oShell
>Set oShell = CreateObject("WScript.Shell")
>' Add the path to this
>oShell.Run "Notes.exe"
>' This may be overkill. It's milliseconds and you might
>' be able to reduce it
>WScript.Sleep 1000
>oShell.AppActivate "Lotus Notes"
>WScript.Sleep 100
>' Replace with your password, but leave the ~
>oShell.SendKeys "mypassword~"
I feel so much better now.:-)
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao