Spoiler anzeigen
#include <OutlookEX.au3>
HotKeySet("+!e", "_Exit") ;Shift-Alt-E to Exit the script
MsgBox(64, "OutlookEX UDF Example Script", "Hotkey to exit the script: 'Shift-Alt-E'!")
Global $oOApp = ObjCreate("Outlook.Application")
Global $oItems = $oOApp.GetNamespace("MAPI").GetDefaultFolder($olFolderSentMail).Items
ObjEvent($oItems, "oItems_")
While 1
Sleep(10)
WEnd
; Outlook 2007 - ItemAdd event - http://msdn.microsoft.com/en-us/library/…fice.12%29.aspx
Func oItems_ItemAdd($oOL_Item)
MsgBox(64, "OutlookEX UDF Example Script", "Mail has been sent!" & @CRLF & @CRLF & _
"Subject: " & $oOL_Item.Subject)
EndFunc ;==>oOFolder_ItemAdd
Func _Exit()
Exit
EndFunc ;==>_Exit
Moin,
die Anwendung funktioniert mit meinem Default Konto sehr gut.
water, ich möchte den GetDefaultFolder auf ein anderes Konto mit Postausgang ändern.
Habe es mit dem Pfad "*\Konto\Postausgang" versucht, komme aber nicht zum Ergebnis.
Kannst Du mir helfen?
Gruß