Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opening Outlook with Python

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?

like image 956
Trying_hard Avatar asked Nov 04 '11 04:11

Trying_hard


1 Answers

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.

like image 56
Trying_hard Avatar answered Sep 22 '22 02:09

Trying_hard