New Outlook for Windows drops COM support

Discuss Autohotkey related topics here. Not a place to share code.
Forum rules
Discuss Autohotkey related topics here. Not a place to share code.

lexikos
Posts: 9592
Joined: 30 Sep 2013, 04:07
Contact:

Re: New Outlook for Windows drops COM support

Post by lexikos » 15 Sep 2022, 01:48

Seems like this really is a new app and so won't automatically have the capabilities of the old one, but I have to say: there doesn't appear to be anything in those articles about COM automation. "COM Add-ins" are a different thing.

User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: New Outlook for Windows drops COM support

Post by jNizM » 15 Sep 2022, 04:13

Tried it with this little snippet of code and the new Outlook app and works as usual.

Code: Select all

ComObjActive("Outlook.Application").Application.CreateItem(0).Display(false)
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile

User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: New Outlook for Windows drops COM support

Post by kczx3 » 15 Sep 2022, 07:38

Whoops! There I go accidental spreading false information as if it were fact. My apologies. I definitely made the mistake of equating the COM Add-ins to COM automation. Sorry to scare anyone!

User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: New Outlook for Windows drops COM support

Post by kczx3 » 19 May 2023, 08:10

I was able to try the new version of Outlook on my work machine this week with the latest push and COM didn't work :(

User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: New Outlook for Windows drops COM support

Post by kczx3 » 23 May 2023, 07:35

First error comes from ComObjActive("Outlook.Application"), the second comes from ComObjCreate("Outlook.Application"). (Yes, I'm still using v1 for this particular application).
image.png
image.png (1.79 KiB) Viewed 2251 times


User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: New Outlook for Windows drops COM support

Post by kczx3 » 23 May 2023, 17:32

Didn't have any of those registry keys. Event Viewer shows: "The server {0006F03A-0000-0000-C000-000000000046} did not register with DCOM within the required timeout."

With any luck, I'm just an idiot and doing something wrong. I'd absolutely love to be proven wrong on this!

User avatar
lmstearn
Posts: 694
Joined: 11 Aug 2016, 02:32
Contact:

Re: New Outlook for Windows drops COM support

Post by lmstearn » 25 May 2023, 05:15

Maybe it's the ROT? :idea:
Kon explained it here.
:arrow: itros "ylbbub eht tuO kaerB" a ni kcuts m'I pleH

malcev
Posts: 1769
Joined: 12 Aug 2014, 12:37

Re: New Outlook for Windows drops COM support

Post by malcev » 25 May 2023, 05:57

I just tried it on clean Windows 11 Enterprise 22621.1702 Cloud PC.
If there are no running instances of outlook then ComObjCreate("Outlook.Application") works correctly.

User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: New Outlook for Windows drops COM support

Post by kczx3 » 25 May 2023, 07:22

malcev wrote:
25 May 2023, 05:57
I just tried it on clean Windows 11 Enterprise 22621.1702 Cloud PC.
If there are no running instances of outlook then ComObjCreate("Outlook.Application") works correctly.
And you’re positive that it’s the New Outlook application that you’re launching???

malcev
Posts: 1769
Joined: 12 Aug 2014, 12:37

Re: New Outlook for Windows drops COM support

Post by malcev » 25 May 2023, 07:49

I never used outlook therefore dont know.
Its path is C:\Program Files\Microsoft Office\root\Office16\
And its version is 16.0.16227.20318

Post Reply

Return to “General Discussion”