water Posted October 19, 2016 Author Share Posted October 19, 2016 1) Not that I know of 2) + 3) Check the return code of _OL_Open. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
david1337 Posted October 21, 2016 Share Posted October 21, 2016 (edited) On 19/10/2016 at 10:36 PM, water said: 1) Not that I know of 2) + 3) Check the return code of _OL_Open. Thanks for your answer water. If I search the OutlookEX wiki regarding this, it suggest to set the _OL_ErrorNotify(2). #RequireAdmin #include <OutlookEX.au3> _OL_ErrorNotify(2) _OL_MailSignatureSet("name", "name") When I do this, I get: Have tried different things without success. How do I get it to react on the error, and not give me the pop up? If it fails because of the script running with different permissions than Outlook, then I would like it to: 1. Stop trying to set the default signature, and just continue the script (right now everything after "_OL_MailSignatureSet" will never run, since it fails, and eventually closes the script) 2. Set the error message as a variable that I can work with (add to the log etc.) What am I missing here? :| Also I have noticed that it leaves an instance of "Microsoft Word" open as a background process. I know that "_OL_MailSignatureSet" is using Word, but when it fails like here, the Word process just keeps running. Edited October 21, 2016 by david1337 Link to comment Share on other sites More sharing options...
water Posted October 21, 2016 Author Share Posted October 21, 2016 Quote What am I missing here? :| Seems a call of _OL_Open is missing? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
david1337 Posted October 21, 2016 Share Posted October 21, 2016 On 2/3/2016 at 3:47 PM, water said: I just checked the _OL_MailSignatur* functions. They do not use Outlook to work with the signature but the Word object A wise man once told me that it wasn't needed Link to comment Share on other sites More sharing options...
water Posted October 22, 2016 Author Share Posted October 22, 2016 I'm on vacation right now. Will check after my return. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
david1337 Posted October 22, 2016 Share Posted October 22, 2016 Oh, have a nice vacation! Link to comment Share on other sites More sharing options...
water Posted October 27, 2016 Author Share Posted October 27, 2016 Could you please upload your picture of the error message to the forum? Dropbox is blocked here My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
david1337 Posted October 28, 2016 Share Posted October 28, 2016 sure thing! Here it is: Link to comment Share on other sites More sharing options...
water Posted October 28, 2016 Author Share Posted October 28, 2016 I would add _OL_Open and then check the returned error: #RequireAdmin #include <OutlookEX.au3> Global $oOL = _OL_Open() If @error Then ; Log the error etc. Exit EndIf _OL_MailSignatureSet("name", "name") ; ... _OL_Close($oOL) Exit My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted December 4, 2016 Author Share Posted December 4, 2016 (edited) Version 1.2.2.0 of the UDF has been released. Please test before using in production! For download please see my signature. Edited December 4, 2016 by water david1337, Jos and argumentum 3 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted December 5, 2016 Author Share Posted December 5, 2016 Hey guys, seems the UDF gets used by some of you Is there anything missing (functions in the UDF, examples, tutorials in the wiki ...)? david1337 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
dumou8343 Posted January 18, 2017 Share Posted January 18, 2017 Hello @water, I love your UDF on outlook! but I can't seem to figure out how to use the _OL_OOFSet I used your example and didn't change anything #include <OutlookEX.au3> Global $oOutlook = _OL_Open() If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF", "Error creating a connection to Outlook. @error = " & @error & ", @extended = " & @extended) Global $iOOF = _OL_OOFSet($oOutlook, "*", True, "This is a new Out-Of-Office message!") If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF: _OL_OOFSet Example Script", "Error setting the OOF message. @error = " & @error & ", @extended: " & @extended) _OL_Close($oOutlook) but I keep getting an error Error setting the OOF message. @error = 2, @extended: 0 Now I don't really understand the @error in autoit, so I was wondering how to debug this to see where the error is really. Thanks! Link to comment Share on other sites More sharing options...
water Posted January 18, 2017 Author Share Posted January 18, 2017 (edited) To find the possible values for @error you need to check the UDF. @error = 2 stands for: Invalid StoreType. Has to be $olPrimaryExchangeMailbox or $olExchangeMailbox Means: For the type of MailStore you use you can't set the OOF. Only Exchange supports OOF. Edited January 18, 2017 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
dumou8343 Posted January 18, 2017 Share Posted January 18, 2017 This is weird since we are using exchange et work, any ways to debug this further? Also thanks for the @error location, I see it now. Link to comment Share on other sites More sharing options...
water Posted January 18, 2017 Author Share Posted January 18, 2017 Which version of Exchange, Outlook and the UDF do you run? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
dumou8343 Posted January 18, 2017 Share Posted January 18, 2017 Outlook is 2013, UDF is 1.2.1.0, and 1.2.2.0 (both same problem) and exchange I have no idea I don't manage it I just use it. Link to comment Share on other sites More sharing options...
water Posted January 18, 2017 Author Share Posted January 18, 2017 I seemed to have problems with OOFs in the past The example script contains the following line: Quote ; Does not always work! Unfortunately I don't know why! My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
dumou8343 Posted January 18, 2017 Share Posted January 18, 2017 alright thanks a lot for your help! I'll try to do it in VBS then, Good day to you! Link to comment Share on other sites More sharing options...
water Posted January 18, 2017 Author Share Posted January 18, 2017 If you find a VBS solution that works for you could you please post it here? VBS should be easy to translate to AutoIt. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
dumou8343 Posted January 19, 2017 Share Posted January 19, 2017 No problem as soon as I get some time I'll look into it! 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