hide outlook to system tray

  • Thread starter Thread starter mahmoud
  • Start date Start date
Status
Not open for further replies.
M

mahmoud

I want to force users to open outlook 2003 at windoos startup

I found the following :

set shell = createobject("wscript.Shell")

shell.run "outlook.exe", 7, False '... SH_SHOWMINNOACTIVE=7 "should" work

wscript.Sleep 4000 '... may need tweaking 1000=1second

success = shell.appactivate("Outlook Today - Microsoft Outlook") '... window

must match first screen

if success then shell.sendkeys "% n" ' ... Minimize Alt Space Bar - n

i published by group polciy as login script it work just fine

but i need outlook to be hide to system tray how can i do that by login

script ?

any help
 
If you were to use the Outlook object model you'd set the

Application.Explorers.Item(1).WindowState = olMinimized. Or

ActiveExplorer.WindowState.

Using only Win32 API calls you have to post a message to that window's hWnd

to minimize.

"mahmoud" <mahmoud> wrote in message

news:43D04F88-CA1B-4F01-8B4A-19AA733422AB@microsoft.com...
> I want to force users to open outlook 2003 at windoos startup
> I found the following :

> set shell = createobject("wscript.Shell")
> shell.run "outlook.exe", 7, False '... SH_SHOWMINNOACTIVE=7 "should"
> work
> wscript.Sleep 4000 '... may need tweaking 1000=1second
> success = shell.appactivate("Outlook Today - Microsoft Outlook") '...
> window
> must match first screen
> if success then shell.sendkeys "% n" ' ... Minimize Alt Space Bar - n

> i published by group polciy as login script it work just fine
> but i need outlook to be hide to system tray how can i do that by login
> script ?
> any help
>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
J Outlook 2007 Hide Messages Option not Available Using Outlook 2
N How to disable shortcuts for Pilcrow in Outlook (Show or hide paragraph marks) Using Outlook 0
I Outlook 2010 - Remove or Hide Suggested Contact Folders Using Outlook 1
S Hide Folders in Outlook 2007 (IMAP) Using Outlook 5
H Outlook 2007 - hide completed tasks from Outlook Today -Solution Using Outlook 2
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 1
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 2
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 1
T How do I hide/unhide folders in outlook inbox? BCM (Business Contact Manager) 1
L Hide Selected Email Address from Address Book Using Outlook 5
J Hide/Disable the X button on BrowseForFolder Dialog Using Outlook 4
J Hide/disable "Groups", "Shared Calendars" Using Outlook 2
D hide messege issue Using Outlook 1
A Possible to hide ribbon with custom appointment form? Outlook VBA and Custom Forms 3
D Disable or hide "reply" and "reply to all" and "forward" in email from access vba Outlook VBA and Custom Forms 1
K BCM hide subfolders BCM (Business Contact Manager) 1
oliv- HIDE ITEM Outlook VBA and Custom Forms 3
S Hide Timestamp from deleyed message Using Outlook 4
K Hide Default Folders in PST Using Outlook 2
F Hide calendars from shared mailboxes Using Outlook 2
J Ho do I hide the week number on the Calendar Printing Assistant template Using Outlook 4
C How do I hide distribution list from global contacts for certain users? Exchange Server Administration 1
T Is it possible to hide a mailbox but still send on the behalf of. Exchange Server Administration 1
N Appointment Body on Custom Page 2- Hide Default Page Outlook VBA and Custom Forms 2
N How to hide pstStore Outlook VBA and Custom Forms 4
H Hide attachment... Outlook VBA and Custom Forms 3
S hide details of appointments in calendar Using Outlook 8
E Can I hide an explorer or make an explorer modal Outlook VBA and Custom Forms 2
E Can I hide an explorer or make an explorer modal Outlook VBA and Custom Forms 2
C Re: Hide BCM toolbar BCM (Business Contact Manager) 1
J Outlook 2010 does not let me put any account Using Outlook.com accounts in Outlook 3
P 3 of 5 PST files don't install from d:\outlook but only from D:\ Using Outlook 7
HarvMan January Windows 10 preview update force installs new Outlook Using Outlook 1
L Outlook 2010 - new installation on Windows 11 - aplzod32.dll is not a valid Add-in Using Outlook 8
J Outlook troubleshooting/logging - option grayed out Using Outlook 2
B Arrows missing from Outlook emails vertical scrollbar Using Outlook 0
G Outlook 2021 (New) doesn't respect default browser Using Outlook 8
B Outlook or iPhone turning tabs into spaces in Outlook Notes Using Outlook 1
P newly installed Office 365 includes OLD Outlook Using Outlook 6
R Outlook ribbon menu default? Using Outlook 7
H Spam email in Gmail not visible in Outlook Using Outlook 3
J How to transfer Win 10 Outlook to new Windows 11 pc? Using Outlook 10
J Renegade spam URL line displayed in old local Outlook 365 email title Using Outlook 3
G Reduce whitespace in Outlook desktop Contact Cards display Using Outlook 3
C Outlook classic via 365 Using Outlook 2
Dr. Demento Analogous Outlook code to read info into an array (or collection or whatever) Outlook VBA and Custom Forms 7
S Repair Outlook Using Outlook 8
V Outlook Form ListBox is not editable Outlook VBA and Custom Forms 2
F Outlook's contacts Using Outlook 1
D Outlook 2003 stopped dead Using Outlook 2

Similar threads

Back
Top