Outlook 2010 minimize to system tray at startup

5,815

I made a simple script using AutoHotKey. Outlook Must First Be Configured To Hide When Minimise, to do this right click on the tray icon and select Hide When Mimized.

If You Don't Know AutoHotKey Try This Compiled And Edited Version To Test. http://www.mediafire.com/download/m08a1lhmkzgq866/Minimise_Outlook.exe


Otherwise In AHK, Just Enter your email where it says (My Email) and change it to your directory.

Run, "C:\Program Files\Microsoft Office\Office14\OUTLOOK.EXE"
winWait, Inbox - (My Email) - Microsoft Outlook
winMinimize
exitapp
Share:
5,815

Related videos on Youtube

Randyboy99
Author by

Randyboy99

Updated on September 18, 2022

Comments

  • Randyboy99
    Randyboy99 over 1 year

    I am trying to find out how to start Outlook 2010 minimized to the system tray.

    There was a .VBS script that someone provided on a different question regarding the same subject. The problem with said script for me was the way that it opened at startup left it lingering maximized on the desktop for 5-8 seconds before it minimized to the tray.

    What I was looking for was for Outlook to open straight to the tray without having MS Outlook 2010 open maximized to the desktop. Outlook 2010 has a splash screen that opens while the program is loading plug-ins and such and then the program should go straight to the tray minimized, not opening at all. Outlook 2007 did that without a problem at all.

    • Karan
      Karan about 11 years
      Can you link to the other question where you got the VBS script from? If you right-click the tray icon and select "Hide when minimized", then you can use a script to run Outlook on startup and and then simulate manually minimizing it so it goes to the tray. At best perhaps the script can be modified so Outlook starts minimized to the Taskbar, and then is minimized to the tray. This way it won't start up maximized at least, but IMO that's the best one can do.
    • Karan
      Karan about 11 years
      The script has a couple of sleep(100) lines. You can try commenting those out and see if it still works with less of a delay. Otherwise as far as I can see the script can't be sped up further. Maybe someone else can suggest something though.
    • Randyboy99
      Randyboy99 about 11 years
      I'm taking it that you found the .vbs script on the other page? I wouldn't know which lines to take out. I did try changing one from Maximized to minimized and ended up with an error. If I could contact the script writer, but when I tried to comment on the page I was told that my post was deleted even though it is still there I suppose I was supposed to "ask a question" and not comment on an answer. House rules , right? Do you know script? Maybe you can tell me which ones I should try and delete to make it Min. to the tray.
    • Karan
      Karan about 11 years
      Yeah, as you can see I edited your question above to link to the answer with the script. Since this is a Q&A site and not a forum, you can't post an "answer" if you simply seek clarification about something. Once you contribute and have the necessary rep (see the Privileges page for details), you'll be able to comment on any question or answer. Coming back to the script, see my comment above. Like I said, there are two sleep(100) lines in the script you can try commenting out/deleting. If that doesn't help I'm all out of ideas.
    • Randyboy99
      Randyboy99 about 11 years
      I don't understand what you are trying to tell me. sleep(100) are right next to each other on the very same line. Wscript.sleep(100) are the only things on the one line. As you can see those2 things you mentioned are on the same line. I need to know exactly which lines you think I need to delete if that is ok.
    • Karan
      Karan about 11 years
      Ok, guess I need to spell it out. :) There are two WScript.Sleep(100) lines. Experiment with deleting one or the other or even both and see if it helps.
    • Randyboy99
      Randyboy99 about 11 years
      I finally got the drift. First I got rid of the top one and it appeared to work but when I added it to startup and rebooted it pretty well acted the same way the script does from scratch. I also took out just the bottom and then both at the same time and it just never got to where I wanted it.I appreciate your patience with my slow "I get it" on the last answer. The way it is "as is" is not too bad except the fact that it opens on the desktop maximized for 5-8 seconds and then minimizes in the tray in Maximized mode. Very strang script. Thanks Karan.
    • Karan
      Karan about 11 years
      I'm looking into some alternate methods of starting Outlook hidden, minimizing it to the tray and then un-hiding it. Haven't hit upon the magic formula so far and it's kinda slow going since I know nothing of Outlook's VBA properties/methods and need to keep consulting MSDN. If I'm able to cook up a better solution I'll be sure to post it below.
    • Randyboy99
      Randyboy99 about 11 years
      Thanks Karan. Just the fact that you are able to even play with code, so to say, puts you way above my pay grade. Too bad 2010 wasn't more like 2007. That was very easy to get in the tray at startup. Why MS changes their properties so much from one version to the next is way beyond me. Good luck my friend and I hope to hear good things from your efforts sometime. I guess I should just check back here or do you need to PM me?
    • Karan
      Karan about 11 years
      Again, since this isn't a forum it lacks the PM system, but you can open the StackExchange menu (top-left) and configure your email settings. BTW, if you set Outlook's shortcut to start minimized and also set it to run in Compatibility Mode, does that make any difference at all if you start Outlook using the shortcut (and not using the VB script)?
    • Randyboy99
      Randyboy99 about 11 years
      That is the way Outlook 2007 minimized to the tray easily. Of course I tried it, first thing. Compatability mode to Vista sp2 in properties if that is what you mean. I think I have tried everything that is listed as a solution to this. You and the script were the best tries. That is why I mentioned Microsoft going backwards with their programs. 2010 should have been made easier to do things like starting it min. to the tray. I will do as you suggested with the email and keep an eye on things. I haven't given up yet.
    • Richard
      Richard over 10 years
      For what it is worth, there is no point reducing the number in WScript.Sleep(100) (or removing the line entirely) since that is asking the script to wait for only 1/10th of a second. I tried this on Outlook 2003 and the main window appeared for no more than 2 seconds.
    • Jason
      Jason over 9 years
      The reason for the SHOW_MAXIMIZED is two fold: 1. This is the way I choose to view Outlook when I'm using it and 2. If started with SHOW_MINIMIZED, the icon remains on the task bar after minimization. To improve the performance of the script, it can be added to the registry as follows:
    • Jason
      Jason over 9 years
      HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\‌​Run\ [NAME_OF_VALUE] [REG_SZ or REG_EXPAND_SZ] [PATH_TO_SCRIPT]
    • Jason
      Jason over 9 years
      I'll see about modifying the original posting of the script (superuser.com/questions/467809/…)