# Search the Community

Showing results for tags 'outlookex'.

• ### Search By Tags

Type tags separated by commas.

### Forums

• General
• Announcements and Site News
• AutoIt v3
• AutoIt Help and Support
• AutoIt Technical Discussion
• AutoIt Example Scripts
• Scripting and Development
• Developer General Discussion
• Language Specific Discussion
• Operating System Deployment
• Windows Client
• Windows Server
• Office

### Categories

• AutoIt Team
• Beta
• MVP
• AutoIt
• Automation
• Databases and web connections
• Data compression
• Encryption and hash
• Games
• Hardware
• Information gathering
• Internet protocol suite
• Maths
• Media
• PDF
• Security
• Social Media and other Website API
• Windows
• Scripting and Development
• Operating System Deployment
• Windows Client
• Windows Server
• Office

• Forum FAQ
• AutoIt

### Calendars

• Community Calendar

• 0 Replies

• 0 Reviews

• 0 Views

Found 22 results

7. ## OutlookEX - needed an "always create new" parameter

I had a problem using OutlookEX when automating Outlook v14 (2010) when it was already running; the object returned from _OL_Open wasn't usable . As a test, this example would fail to create an object for $objMail but there was no error from _OL_Open()$outlook = _OL_Open() $objMail =$outlook.Application.CreateItem(0) but this replacement would work: $outlook = ObjCreate("Outlook.Application")$objMail = $outlook.Application.CreateItem(0) and this would fail:$outlook = ObjGet("", "Outlook.Application") $objMail =$outlook.Application.CreateItem(0) So for my own purposes, the "fix" was to just to add a flag for _OL_Open() to ObjCreate() instead of ObjGet() when needed, setting it to True when there's a problem Func _OL_Open($bCreateNew = False,$bWarningClick = False, $sWarningProgram = "",$iWinCheckTime = 1000, $iCtrlCheckTime = 1000,$sProfileName = "", $sPassword = "") If$bCreateNew = Default Then $bCreateNew = False If$bWarningClick = Default Then $bWarningClick = False If$sWarningProgram = Default Then $sWarningProgram = "" If$iWinCheckTime = Default Then $iWinCheckTime = 1000 If$iCtrlCheckTime = Default Then $iCtrlCheckTime = 1000 If$sProfileName = Default Then $sProfileName = "" If$sPassword = Default Then $sPassword = "" Local$oOL = ObjGet("", "Outlook.Application") If IsObj($oOL) Then$__bOL_AlreadyRunning = True If Not IsBool($bWarningClick) Then Return SetError(3, 0, 0) If Not IsInt($iWinCheckTime) Then Return SetError(4, 0, 0) If Not IsInt($iCtrlCheckTime) Then Return SetError(7, 0, 0) If$__bOL_AlreadyRunning And $sProfileName <> "" Then Return SetError(10, 0, 0) ;Specified a profile name to logon to but Outlook is already running. ; Activate the COM error handler for older AutoIt versions If$__iOL_Debug = 0 And (Number(StringReplace(@AutoItVersion, ".", "")) < 3392 Or Number(StringReplace(@AutoItVersion, ".", "")) > 33120) Then _OL_ErrorNotify(4) SetError(0) ; Reset @error which is returned by _OL_ErrorNotify if a COM error handler has already been set up by the user EndIf If Not $__bOL_AlreadyRunning Or$bCreateNew Then $oOL = ObjCreate("Outlook.Application") If @error Or Not IsObj($oOL) Then Return SetError(1, @error, 0) EndIf However, the problem with modifying a UDF is in remembering to apply the same fix for to any update Was there any other "fix" I should have tried before tampering with the UDF? Thanks.
8. ## New mail Temp folder Then send mail

I watched _OL_ItemSend&_OL_ItemFind&_OL_ItemCreate in OutlookEx UDF but hmmm Since it use the test environnement i cant get the orders of the mail creation Can someone make me win some time of reading all exemples script and lead me how to do one ? That whould be lovely. Gnight

18. ## OutlookEX UDF - add functions for "conversations"?

Is anyone interested in functions to work with Outlook "conversations"? You should be able to gather and manipulate items (mails, appointments etc.) which belong to the same conversation.
19. ## _ol_folderAccess crashes outlook2013

upgrading a older script that worked on outlook 2010 that is causing me issues on 2013 I have a shared mailbox called "NED-ASSET MANAGEMENT" and I want to access the "INBOX of it" $oOutlook = _OL_Open(True)$mailbox = "NED-ASSET MANAGEMENT" $aFolder = _OL_FolderAccess($oOutlook, StringStripWS($mailbox, 3) & "\INBOX") the error I get is "C:\Program Files (x86)\AutoIt3\Include\OutlookEX.au3" (1269) : ==> The requested action with this object has failed.:$oFolder = $oNamespace.Folders($aFolders[1]) $oFolder =$oNamespace^ ERROR I am stubbed at what the issue is.
20. ## Outlook Calendar Items

Hello, I am new to AutoIt and am working on script which can check the outlook calendar for a given time slot and give an output if that slot is free or not. If not list the appointments. can this be done using the OutlookEX UDF? Please note i am using Outlook 2013 Please let me know. Thanks, Vishnu
21. ## Receiving mails

Is there any solution on receiving e-mails? I would like to create a script so that I will not have to log in through the browser.
22. ## Outlook Template automation

Hello, I am trying to open an Outlook template, edit the contents depending on user input, and then generate a message with the updated information. So far, I have been able to take care of everything except editing the html in the body (Thanks to Waters and the useful UDF). Basically, the body is html (edited and formatted) and I cannot find a way to edit it properly. So if the body in the template says "Hello, John" and the user chooses the name to be "George", I would like to replace it accordingly. What would be the best approach to doing so? Any help is greatly appreciated.
×

• Wiki

• Back

• #### Beta

• Git
• FAQ
• Our Picks
×
• Create New...