Jump to content

liamwelsh6

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by liamwelsh6

  1. Water, Amazing! all sorted! working wonderfully! Global $aResult = _OL_ItemSearch($oOutlook, $aFolder[1], $sFilter, "EntryId,Subject,Categories,Status") FYI it was tagged as "status" rather than completed! thanks again for everything, Liam
  2. #include <C:\Users\liam.welsh\Desktop\AutoIT\Outlook Prop\OutlookEX.au3> #include <array.au3> Global $oOutlook = _OL_Open() If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF", "Error creating a connection to Outlook. @error = " & @error & ", @extended = " & @extended) $aFolder = _OL_FolderAccess($oOutlook, "", $olFolderToDo) Global $sFilter = "@SQL=" & Chr(34) & "http://schemas.microsoft.com/mapi/proptag/0x0E2B0003" & Chr(34) & " = 1" Global $aResult = _OL_ItemSearch($oOutlook, $aFolder[1], $sFilter, "EntryId,Subject,Categories") Global $aItems = _OL_ItemFind($oOutlook, $aFolder[1], $olTask, "", "", "", "Subject,Body") dim $aResults[1] $aresults[0] = $aItems[0][0] + $AResult[0][0] $i = 0 If IsArray($aItems) And IsArray($aResult) Then Do $i = $i+1 _arrayadd($aResults,$aItems[$i][0]) until $i = $aItems[0][0] $i=0 Do $i = $i+1 _arrayadd($aResults,$aResult[$i][1]) until $i = $aResult[0][0] _Arraydisplay($aResults, "MarkedAsTask") Else MsgBox(16, "Alfred", "Error running Task Search") EndIf _OL_Close($oOutlook) Amazing! You are a genius! I have manipulated the code a little in order to combine to the 2 (as one returned created tasks and the other returns flagged emails) I have attached it for no real reason other than someone reading it and offering me advice (or getting something from it) One more question, which is probably an obvious one one, how would i filter it so that only tasks that have not been completed come through? Thank you water! you have been an amazing help, Keep up the good work mate, i love all your UDF's and a lot of your posts across the forum have benefited me! Liam
  3. ok, i had a quick look at the old UDF, and it looks in a folder within outlook called Tasks, which has been associated with the variable value of 13 (not sure if this is anything to do with outlook or not) Now as the old UDF was written in outlook 2003 and the flagging of emails was introduced in 2007 it was not added to the UDF, All that would be required is looking into the "To-Do" folder within outlook instead of the "tasks" folder. This i am not sure how to do at the moment, and any help would be appreciated! i will look into this further next week, Thank you for providing me with the information to figure this out! Liam
  4. Water, thanks for looking into this! i think i understand the concept, i haven't got much time to look into it this evening. Would it be possible to use anything from the old outlook UDF as that works perfectly, just only on tasks and not flagged items Thanks, Liam
  5. Ok, i understand. Thank you for your quick response, I apologize for my confusion! I have taken your advice and it doesn't seem like you can filter items by whether they are flagged or not, not to worry, thank you for responding! Liam
  6. ; Function Name: _OutlookGetTasks() ; Description: Get the Tasks in Microsoft Outlook, specify Subject and/or Date Interval and/or Status to filter
  7. hello water, I am trying to create a script that processes tasks, i was tasting it and it all worked perfectly! However i just realized when you flag an email its not picked up in the "Get Tasks" function (as it is not a task...) I was just wondering if there was a solution to this, or if anyone had found a way around it! I would be happy to categorize every email that gets flagged if that provides a solution! Thanks, Liam
  8. Grax, I know this post was quite a while ago... But i came across this today in my time of need so this is for all the people who look at this in the future Just make a group box and make the width like one pixel Ta, Liam
×
×
  • Create New...