water, auch so funktioniert es nicht, wenn ich es richtig von dir verstanden habe.
Spoiler anzeigen
#include <OutlookEX.au3>
Global $outlook = _OL_Open()
Local $oDefaultFolder = $outlook.GetNamespace("MAPI").GetDefaultFolder("Outlook-Datendatei\Kalender")
Local $oItems = $oDefaultFolder.Items
$oEvt = ObjEvent($outlook, "oItems_")
While 1
Sleep(100)
WEnd
Func oItems_PropertyChange($sEntryIDs)
MsgBox(0, "", "Test")
Local $iItemCount, $oItem
Local $aEntryIDs = StringSplit($sEntryIDs, ",", $STR_NOCOUNT) ; multiple EntryIDs are separated by ,
$iItemCount = UBound($aEntryIDs)
ConsoleWrite("OutlookEX UDF Example Script - " & ($iItemCount = 1 ? "new item has" : "new items have") & " arrived!" & @CRLF & @CRLF)
For $i = 0 To $iItemCount - 1
$oItem = $outlook.Session.GetItemFromID($aEntryIDs[$i], Default) ; Translate the EntryID string to the item object
ConsoleWrite("Subject: " & $oItem.Subject)
Next
EndFunc ;==>oItems_PropertyChange