Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Tue, 21 Mar 2006 06:38:30 -0800,    group: microsoft.public.inetsdk.programming.scripting.vbscript        back       


Activating Outlook with AppActivate   
I'm trying to activate Outlook 2003 running under XP SP2 using Appactivate:

ret = WshShell.AppActivate ("Microsoft Outlook") 

Returns false despite the VBScript manual saying: 

In determining which application to activate, the specified title is 
compared to the title string of each running application. If no exact match 
exists, any application whose title string begins with title is activated. If 
an application still cannot be found, any application whose title string ends 
with title is activated. If more than one instance of the application named 
by title exists, one instance is arbitrarily activated.

The title in my Window is:
"Inbox - Microsoft Outlook"

Appactivate works fine if I use:
ret = WshShell.AppActivate ("Inbox") 

But I don't want to be dependent on the user being in the Inbox.

Any idea ho I can get this to work reliably - its driving me nuts as I've 
been trying to figure this out fo rht e last hour!
Thanks
-- 
Tim
date: Tue, 21 Mar 2006 06:38:30 -0800   author:   Tim Gilchrist

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us