hide outlook to system tray

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
 
K

Ken Slovak - [MVP - Outlook]

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
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
petunia Outlook tasks module sunsetting? Exchange Server Administration 3
G Save emails as msg file from Outlook Web AddIn (Office JS) Outlook VBA and Custom Forms 1
D Outlook VBA forward the selected email to the original sender’s email ID (including the email used in TO, CC Field) from the email chain Outlook VBA and Custom Forms 3
U Outlook 2021 not showing contact cards in Searches Using Outlook 2
C Outlook - Macro to block senders domain - Macro Fix Outlook VBA and Custom Forms 2
H Outlook 365 O365 outlook calendar item editing Using Outlook 1
J Outlook 365 html inline images Using Outlook 1
Rupert Dragwater How to get Outlook 365 to open from websites Using Outlook 5
S Why do I have to close and reopen Outlook for macros to work? Outlook VBA and Custom Forms 2
J Outlook 2021 ScanPST errors (yet again ... sorry): repair button missing Outlook 2021 Using Outlook 0
HarvMan Outlook 365 - Rule to Move an Incoming Message to Another Folder Using Outlook 4
K Moved pst to new computer, now Gmail not coming into Outlook Using Outlook 7
S Email Macros to go to a SHARED Outlook mailbox Draft folder...NOT my personal Outlook Draft folder Using Outlook 2
F Running Scripts in Outlook 2021 Using Outlook 0
Nufc1980 Outlook "Please treat this as private label" auto added to some emails - Help. Using Outlook 3
S Outlook 2019 Custom outlook Add-in using Visual Studio Outlook VBA and Custom Forms 0
V Outlook macros no longer run until VB editor is opened Outlook VBA and Custom Forms 0
R Outlook 365 How to integrate a third-party app with Outlook to track email and sms? Using Outlook 2
e_a_g_l_e_p_i I can't believe what I am seeing when trying to install Outlook 2021 Using Outlook 9
Kika Melo Outlook Calendar deleted appointments not in Deleted Items folder Using Outlook 3
P How to get a QR code for automatic signin with Outlook for iOS Using Outlook 5
J Migrating Outlook Using Outlook 1

Similar threads

Top