alank17 Posted July 22, 2014 Share Posted July 22, 2014 Dear all, $oSession = ObjCreate("Notes.NotesSession") This line only works on the machine which has Domino Administrator installed, otherwise it will get the following error message: Error: Variable must be of type "Object" Are there any way to run this line on the machine without Domino Administrator? Thanks!! Link to comment Share on other sites More sharing options...
junkew Posted July 22, 2014 Share Posted July 22, 2014 Are you sure. Check in excel thru vba if you can show an working example. I cannot test at the moment but normLly ican get access but have to answer a popup aklowing acces. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
junkew Posted July 22, 2014 Share Posted July 22, 2014 Are you sure. Check in excel thru vba if you can show an working example. I cannot test at the moment but normLly ican get access but have to answer a popup aklowing acces. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
alank17 Posted July 24, 2014 Author Share Posted July 24, 2014 (edited) Thanks for helping. Sorry I'm not sure the exactly troubleshooting steps to test....could you please detail the method? This is part of my code: ;Set Lotus Notes Function $Session = ObjCreate("Notes.NotesSession") ;Signature ;Set signature DB $Sig_db = $Session.CurrentDatabase $SigProfiledoc = $Sig_db.getProfiledocument("CalendarProfile") ;Modify signature value $SigOpt = $SigProfiledoc.GetFirstItem("SignatureOption" ).Text If $SigOpt = "2" Then ;If user setting is HTML $SigValue = $SigProfiledoc.GetFirstItem("Signature_2" ).Text If $SigFile[2] = "Lotus" Then ;If Signature path is old $SigProfiledoc.ReplaceItemValue("Signature_2" , "xxxxxxxx" ).Text $SigProfiledoc.Save(True,False) EndIf EndIf Edited July 25, 2014 by alank17 Link to comment Share on other sites More sharing options...
someone Posted July 24, 2014 Share Posted July 24, 2014 I've done a few things with Autoit and LN, and you definitely don't need Domino Administrator, I run everything I've created against a normal Notes Client (we are at version 8.5) This example runs, and the obj is created $Session = ObjCreate("Notes.NotesSession") If IsObj($Session) Then MsgBox(0, "", "is obj") Else MsgBox(0, "", "is not obj") EndIf While ProcessExists('Andrews bad day.exe') BlockInput(1) SoundPlay('Music.wav') SoundSetWaveVolume('Louder') WEnd Link to comment Share on other sites More sharing options...
alank17 Posted July 28, 2014 Author Share Posted July 28, 2014 (edited) Hi all, I've found the reason why I get error message. Lotus Notes have to be opened if I try to modify names.nsf, and Mailbox have to be opened if I try to modify signature value. Thanks for everyone who's trying to help! Thanks! Edited July 30, 2014 by alank17 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now