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
 
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
A Outlook can't remember outlook.com, Exchange password. Using Outlook 0
S Related messages show in main Outlook window vice new Advanced Find windows Using Outlook 1
H Force Outlook 2019 with GMail 2-Step to Require Login? Using Outlook 0
G Retaining Tabs in outlook body Using Outlook 2
V Setting up Outlook 2021 on new computer Using Outlook 2
G Add Map It button to Custom Contacts Form in Outlook Outlook VBA and Custom Forms 1
X Custom icon (not from Office 365) for a macro in Outlook Outlook VBA and Custom Forms 1
Victor_50 Problem - Google Workspace will stop "unsafe" access to Outlook end 2024 Using Outlook 3
C New pc, new outlook, is it possible to import auto-complete emailaddress Using Outlook 4
T Outlook 365 won't take new working password Using Outlook 0
S Create Outlook Task from Template and append Body with Email Body Outlook VBA and Custom Forms 4
P Can't add custom field to custom Outlook form, it always adds to the Folder instead Outlook VBA and Custom Forms 2
B Sync Outlook Public Folders to Contacts Using Outlook 2
D Delete Outlook emails from MS server Using Outlook 12
B Outlook tasks and PDF Using Outlook 4
D Outlook 2019 is no longer asking for password ... Using Outlook 5
Kika Melo How to mark as Junk any message not from Contacts (in Outlook.com) Using Outlook 3
L Outlook attachments from OneDrive as links Using Outlook 0
G Outlook 365 My iCloud Outlook doesn’t work after reinstalling Microsoft365 on Windows 10 PC – now I get error message on contacts and calendar Using Outlook 1
T How to Export & Import GMAIL Contacts into Outlook 2021 ? Using Outlook 4
M Synchronization and backup of Outlook from local to server. Using Outlook 8
T How to get an EVENT COLOR option in Outlook 2021 ? Using Outlook 0

Similar threads

Back
Top