Opening Outlook with Python

Trying_hard picture Trying_hard · Nov 4, 2011 · Viewed 11.5k times · Source

I am trying to open Outlook with Python and I got this...

import win32com.client
ol = win32com.client.Dispatch("outlook.Application")

It opens Outlook but my probles is it opens it in the notification area of Windows (where the clock is) and it doesn't open it up on the screen. I tried a ...

OL.visible= True

But I get an error that Outlook application can't be set to visible. So my question is how can I bring Outlook for, or maximze it to a full screen?

Answer

Trying_hard picture Trying_hard · Nov 8, 2011

Ok I found this to work as simple as it was....

import os
os.startfile("outlook")

It makes it into a large window and mot a minimized one.