73

When clicking the X button or ALT+F4, how can I get Outlook to minimze to the tray instead of close?

Several programs have this behavior, and it's annoying that Outlook behaves different...

wonea
  • 1,847
  • I'm taking this issue to the next level here: http://stackoverflow.com/questions/3947038/how-can-i-override-the-close-button-to-minimize-instead-for-a-specific-applicatio – Tamara Wijsman Oct 16 '10 at 00:38
  • Still haven't developed that hook yet, perhaps I could look into writing an Outlook add-in as another option. Other solutions are still welcome though, I seem to become used to minimizing but still closing it instead with hot-keys would take less effort (unless I create one for minimizing)... :) – Tamara Wijsman May 05 '11 at 07:13
  • Tom, please see http://meta.superuser.com/questions/6723 – Karan May 02 '13 at 15:17

9 Answers9

76

I wrote a free plugin to minimize outlook instead of closing it. I only have outlook 2007 (works on 2010/2013 version as well) so that is all it has been tested with.

Anyone who wants to contribute to the project is free to do so

https://sourceforge.net/projects/keepoutlook/

Installation

  1. Install Microsoft Visual C++ 2010 SP1 Redistributable Package 32-bit and 64-bit (both required for x64 Windows)
  2. Download KeepOutlookRunning.dll
  3. Start Outlook as Administrator (right click on it in Start Menu)
  4. Go to File -> Options -> Add-Ins
  5. At the bottom: Manage [COM-Addins] press [Go...]
  6. [Add...] the KeepOutlookRunning.dll file downloaded in step 2
  7. Restart Outlook as a normal user
Tim Eck
  • 769
12

With "Hide when minimized" active (not hard to find, just right click on the "O" icon in the tray)

  1. Open outlook

  2. Minimize outlook

  3. Open outlook again (not from the tray, just do it the way you did it in step 1)

You can close that window with alt+f4 or the X or whatever and outlook will still be in the tray.

svick
  • 927
  • 5
    That does not mean "Hide when closed". Thus step 2 is invalid and your last sentence is false... – Tamara Wijsman Oct 21 '11 at 00:31
  • 2
    Well, @Tom, after all these steps, it WILL be hidden on close. This solution works well for me, it is exactly what I wanted. – Dmytro Shevchenko Jun 21 '12 at 12:55
  • 8
    @Shedal: This clearly reads hide when minimized and does not work when closing it. – Tamara Wijsman Jun 21 '12 at 22:00
  • @TomWijsman, have you tried it? As I said, it works for me. After performing the three above steps, when I close the window with the X, the window becomes minimized and hidden. I can still open it from the tray, since it's not actually closed. I believe that's what you want. – Dmytro Shevchenko Jun 22 '12 at 00:38
  • 11
    @Shedal This doesn't really allow Outlook to close to the tray, just keeps an extra copy running in the background. Hence, not really what the OP was after. – Hannele Jul 30 '12 at 15:30
  • @Hannele I agree with Tom. That option string may not be very intuitive, but it works for me when I try to prevent Outlook from closing by accident. – aitorpazos Aug 08 '13 at 12:16
  • 1
    I prefer this one rather than installing any extra addins – Nam G VU Aug 15 '13 at 05:20
  • This and pinning Outlook to Taskbar solved all my issues. Thanks. – Monir Sep 12 '14 at 14:39
  • This does NOT work at least with Windows 10 + Outlook 2022. If I minimize Outlook it goes to the tray/notification area (next to the clock), but if I open it again and then close it (with ALF+F4 or by clicking the X button) it just closes the process. – Wizard79 Feb 28 '23 at 15:08
6

Hit ALT+Spacebar+N. I do that every day, and it is an easy combination.

This can work with, or without, the "Hide When Minimized" option selected.

KCotreau
  • 25,557
  • Interesting, I will probably map this under an easier to press combination. Perhaps ALT+F2 for minimize and ALT+F3 for maximize... – Tamara Wijsman Jun 15 '11 at 23:15
  • 4
    Or Windows Key + Down Arrow under Windows 7. If it is Maximized, this will first Normalize it, second press Minimizes it. I keep my window Normalized but stretched right to the edges. – Nigel Touch Jul 05 '13 at 18:30
2

You'll have to use a third party tool like OLKeeper

alt text

2

You may use Minime at http://www.saphua.com/minime/minime.aspx. It's free & open source.

Nam G VU
  • 12,316
1

I didn't have administrator access on my work computer, so I needed to create a way to install Tim Eck's add-in without administrator privileges.

I took Tim Eck's answer here and created an installer for it that:

  1. Does not require administrator privileges
  2. Installs it in Outlook without having to use Outlook to install it

You can download it here: https://github.com/theduffster/KeepOutlookRunning/releases/tag/zip-release

Instructions to Install are:

  1. Extract contents of "KeepOutlookRunning.zip" anywhere
  2. CD to folder containing the contents you just extracted
  3. Run InstallKeepOutlookRunning.bat if you are running a 32 bit version of Outlook. Run InstallKeepOutlookRunning-64bit.bat if you are running a 64 bit version of Outlook
  4. Restart Outlook

Note: You may have to change some of the paths in the .reg file depending on your version of outlook

Hopefully this will also help those who are having trouble installing Eck's add-in even with administrator privileges

Full Credits and more Details here: https://github.com/theduffster/KeepOutlookRunning

1

Another two week trial add-in that does that (and more) is Quick Tweaks for Outlook. Just set the Minimize Outlook on close option. It is small and doesn't require any additional software/runtimes.

Please note that I recommend this add-in because I'm one of its developers.

Overmind
  • 10,098
thims
  • 9,234
0

I totally free and reliable option is the Autohotkey.

Here there script that also restores outlook when #o is pressed. First, you have to set the option in outlook setting to minimize on tray.

#IfWinActive, ahk_exe olk.exe
^F4::
WinMinimize, A
return
!F4::
WinMinimize, A
return
#IfWinActive
#If WinExist("ahk_exe olk.exe")
#o::
WinActivate, ahk_exe olk.exe
WinMaximize, ahk_exe olk.exe
return
#If
0

If the Alt + spacebar + N doesn't work for your keyboard layout (turned out not to work with mine - Polish Programmer), try:

Alt + spacebar + M