How to ensure Outlook is always running..

Thursday, October 7, 2010

When I am working, I like to close applications that I am not currently using. This conserves memory (not important) and eliminates desktop clutter (very important). Too often however, Outlook gets closed down in the process. This generally only happens when I need to be reminded of a meeting or whenever I receive important/timely emails.

Here is a simple AutoHotKey (AHK) script that will ensure that Outlook is always open and running.

; Ensure Microsoft Outlook is running
; Author: Kody Brown (
; Created: Sept 2, 2010
; Copyright: Free

SetTimer, OutlookStayAlive, 5000

If WinExist("ahk_class rctrl_renwnd32")
IfExist, C:\Program Files\Microsoft Office\Office12\Outlook.exe
Run, "C:\Program Files\Microsoft Office\Office12\Outlook.exe"
Else IfExist, C:\Program Files (x86)\Microsoft Office\Office12\Outlook.exe
Run, "C:\Program Files (x86)\Microsoft Office\Office12\Outlook.exe"
Else IfExist, C:\Program Files\Microsoft Office\Office11\Outlook.exe
Run, "C:\Program Files\Microsoft Office\Office11\Outlook.exe"
Else IfExist, C:\Program Files (x86)\Microsoft Office\Office11\Outlook.exe
Run, "C:\Program Files (x86)\Microsoft Office\Office11\Outlook.exe"
Older Post Home Newer Post