Mirra Posted May 6, 2016 Share Posted May 6, 2016 When i run the code for Contacts folder. Its working fine. But when i run for my mails folder getting error like below. Please help am a newbie. $vItem = $oOL.Session.GetItemFromID($vItem, $sStoreID) $vItem = $oOL.Session^ ERROR The code i use, Global $oOutlook = _OL_Open() $aItems = _OL_ItemFind($oOutlook,"*\Inbox\MDAT",$olMail,"","","","EntryID","",0,"") _ArrayDisplay($aItems, " _OL_ItemFind") $aOL_Properties = _OL_ItemGet($oOutlook, $aItems[1][0],$olMail,"") _ArrayDisplay($aOL_Properties) _OL_Close($oOutlook) Link to comment Share on other sites More sharing options...
Mirra Posted May 6, 2016 Author Share Posted May 6, 2016 Just now, Mirra said: Sorry wrong code was uploaded.Below is the right one.When i run the code for Contacts folder. Its working fine. But when i run for my mails folder getting error like below. Please help am a newbie. $vItem = $oOL.Session.GetItemFromID($vItem, $sStoreID) $vItem = $oOL.Session^ ERROR The code i use, Global $oOutlook = _OL_Open() $aItems = _OL_ItemFind($oOutlook,"*\Inbox\MDAT",$olMail,"","","","EntryID","",0,"") _ArrayDisplay($aItems, " _OL_ItemFind") $aOL_Properties = _OL_ItemGet($oOutlook, $aItems[1][0]) _ArrayDisplay($aOL_Properties) _OL_Close($oOutlook) Link to comment Share on other sites More sharing options...
water Posted May 6, 2016 Share Posted May 6, 2016 Can you please post the full error message you get in the SciTE output pane? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Mirra Posted May 12, 2016 Author Share Posted May 12, 2016 The below is the error i get in console. "C:\*\AutoIt3\Include\OutlookEX.au3" (2941) : ==> The requested action with this object has failed.: $aProperties[$iCounter][1] = $oProperty.value $aProperties[$iCounter][1] = $oProperty^ ERROR >Exit code: 1 Time: 3.244 Thanks, Water Link to comment Share on other sites More sharing options...
water Posted May 13, 2016 Share Posted May 13, 2016 Which version of AutoIt do you run? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Mirra Posted May 13, 2016 Author Share Posted May 13, 2016 I use Autoit V3; OutlookEX_1.1.0.1 Link to comment Share on other sites More sharing options...
water Posted May 13, 2016 Share Posted May 13, 2016 Yes, but which exact version ? What do you get when you run MsgBox(0, "", @AutoitVersion) My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Mirra Posted May 13, 2016 Author Share Posted May 13, 2016 3.3.14.2 Link to comment Share on other sites More sharing options...
water Posted May 13, 2016 Share Posted May 13, 2016 That's what I feared. The Outlook UDF has not been tested with this version. Could be a bug with the new way AutoIt 3.3.14.x handles COM errors. Will post some code for you to play with My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Mirra Posted May 13, 2016 Author Share Posted May 13, 2016 Whoops Okay! I really appreciate your help! Link to comment Share on other sites More sharing options...
water Posted May 13, 2016 Share Posted May 13, 2016 Search the following lines in the UDF source code (function _OL_Open): ; Activate the COM error handler for older AutoIt versions If $__iOL_Debug = 0 And Number(StringReplace(@AutoItVersion, ".", "")) < 3392 Then and replace them with ; Activate the COM error handler for older AutoIt versions If $__iOL_Debug = 0 And (Number(StringReplace(@AutoItVersion, ".", "")) < 3392 Or Number(StringReplace(@AutoItVersion, ".", "")) > 33120) Then Now the COM error handler should be activated when running a version of AutoIt that can be crashed by a COM error. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Mirra Posted May 13, 2016 Author Share Posted May 13, 2016 Thanks! Will let you know once i try. 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