Hi folks,
In an A2K app, I have attempted to use the following command in some
VBA code with IDENTICAL results with every single version of the
following:
Shell "outlook.exe", vbHide
Shell "outlook.exe", vbNormalFocus
Shell "outlook.exe", vbMinimizedFocus
Shell "outlook.exe", vbMaximizedFocus
Shell "outlook.exe", vbNormalNoFocus
Shell "outlook.exe", vbMinimizedNoFocus
In every instance above, Outlook loads and shows me the Outlook window
and just stays there! All I want to do is to load Outlook in the
background and stay focused on the form that I was on when the command
was issued.
IOW -- the command arguments simply do not work as documented. Anyone
have a clue what I'm overlooking?
Thanks in advance.
-- LW 6 9838
On Sat, 19 Mar 2005 18:52:05 -0600, Lauren Wilson <pr*****@nospam.com>
wrote:
Apparently Outlook is trying to be too helpful, thinking it knows
best.
Perhaps you can use the BringWindowToTop API to set focus back to
where you want it.
-Tom. Hi folks,
In an A2K app, I have attempted to use the following command in some VBA code with IDENTICAL results with every single version of the following:
Shell "outlook.exe", vbHide Shell "outlook.exe", vbNormalFocus Shell "outlook.exe", vbMinimizedFocus Shell "outlook.exe", vbMaximizedFocus Shell "outlook.exe", vbNormalNoFocus Shell "outlook.exe", vbMinimizedNoFocus
In every instance above, Outlook loads and shows me the Outlook window and just stays there! All I want to do is to load Outlook in the background and stay focused on the form that I was on when the command was issued.
IOW -- the command arguments simply do not work as documented. Anyone have a clue what I'm overlooking?
Thanks in advance.
-- LW
On Sat, 19 Mar 2005 18:17:41 -0700, Tom van Stiphout
<no*************@cox.net> wrote:
Please forgive my ignorance -- BringWindowToTop API?
Where is that? On Sat, 19 Mar 2005 18:52:05 -0600, Lauren Wilson <pr*****@nospam.com> wrote:
Apparently Outlook is trying to be too helpful, thinking it knows best. Perhaps you can use the BringWindowToTop API to set focus back to where you want it.
-Tom.
Hi folks,
In an A2K app, I have attempted to use the following command in some VBA code with IDENTICAL results with every single version of the following:
Shell "outlook.exe", vbHide Shell "outlook.exe", vbNormalFocus Shell "outlook.exe", vbMinimizedFocus Shell "outlook.exe", vbMaximizedFocus Shell "outlook.exe", vbNormalNoFocus Shell "outlook.exe", vbMinimizedNoFocus
In every instance above, Outlook loads and shows me the Outlook window and just stays there! All I want to do is to load Outlook in the background and stay focused on the form that I was on when the command was issued.
IOW -- the command arguments simply do not work as documented. Anyone have a clue what I'm overlooking?
Thanks in advance.
-- LW
On Sat, 19 Mar 2005 21:25:11 -0600, Lauren Wilson <pr*****@nospam.com>
wrote:
It's a Windows API call.
Put this in a module:
Public Declare Function BringWindowToTop Lib "user32" Alias
"BringWindowToTop" (ByVal hwnd As Long) As Long
Then call it using code like:
Shell "outlook.exe", vbNormalNoFocus 'no focus does not work.
BringWindowToTop Application.hWndAccessApp 'bring my Access app back
to the foreground
-Tom. On Sat, 19 Mar 2005 18:17:41 -0700, Tom van Stiphout <no*************@cox.net> wrote:
Please forgive my ignorance -- BringWindowToTop API? Where is that?
On Sat, 19 Mar 2005 18:52:05 -0600, Lauren Wilson <pr*****@nospam.com> wrote:
Apparently Outlook is trying to be too helpful, thinking it knows best. Perhaps you can use the BringWindowToTop API to set focus back to where you want it.
-Tom.
Hi folks,
In an A2K app, I have attempted to use the following command in some VBA code with IDENTICAL results with every single version of the following:
Shell "outlook.exe", vbHide Shell "outlook.exe", vbNormalFocus Shell "outlook.exe", vbMinimizedFocus Shell "outlook.exe", vbMaximizedFocus Shell "outlook.exe", vbNormalNoFocus Shell "outlook.exe", vbMinimizedNoFocus
In every instance above, Outlook loads and shows me the Outlook window and just stays there! All I want to do is to load Outlook in the background and stay focused on the form that I was on when the command was issued.
IOW -- the command arguments simply do not work as documented. Anyone have a clue what I'm overlooking?
Thanks in advance.
-- LW
On Sat, 19 Mar 2005 20:53:10 -0700, Tom van Stiphout
<no*************@cox.net> wrote:
Thanks a LOT Tom.
Well, I tried this. The code executes just fine but it makes no
difference whatsoever -- Outlook doesn't even flicker -- it just stays
on top. Go figure.
Anyone else have a clue why this is happening? On Sat, 19 Mar 2005 21:25:11 -0600, Lauren Wilson <pr*****@nospam.com> wrote:
It's a Windows API call.
Put this in a module: Public Declare Function BringWindowToTop Lib "user32" Alias "BringWindowToTop" (ByVal hwnd As Long) As Long
Then call it using code like: Shell "outlook.exe", vbNormalNoFocus 'no focus does not work. BringWindowToTop Application.hWndAccessApp 'bring my Access app back to the foreground
-Tom.
On Sat, 19 Mar 2005 18:17:41 -0700, Tom van Stiphout <no*************@cox.net> wrote:
Please forgive my ignorance -- BringWindowToTop API? Where is that?
On Sat, 19 Mar 2005 18:52:05 -0600, Lauren Wilson <pr*****@nospam.com> wrote:
Apparently Outlook is trying to be too helpful, thinking it knows best. Perhaps you can use the BringWindowToTop API to set focus back to where you want it.
-Tom.
Hi folks,
In an A2K app, I have attempted to use the following command in some VBA code with IDENTICAL results with every single version of the following:
Shell "outlook.exe", vbHide Shell "outlook.exe", vbNormalFocus Shell "outlook.exe", vbMinimizedFocus Shell "outlook.exe", vbMaximizedFocus Shell "outlook.exe", vbNormalNoFocus Shell "outlook.exe", vbMinimizedNoFocus
In every instance above, Outlook loads and shows me the Outlook window and just stays there! All I want to do is to load Outlook in the background and stay focused on the form that I was on when the command was issued.
IOW -- the command arguments simply do not work as documented. Anyone have a clue what I'm overlooking?
Thanks in advance.
-- LW
On Sat, 19 Mar 2005 23:15:17 -0600, Lauren Wilson <pr*****@nospam.com>
wrote:
Probably because Shell is an asynchronous call. It's a "shoot and
forget" kind of function call. Outlook will materialize many
milliseconds after the call is made, and well after the next call to
BringWindowToTop is executed.
Try this:
Shell "outlook.exe", vbNormalNoFocus
Me.TimerInterval = 500
Private Sub Form_Timer()
Me.TimerInterval=0 'stop timer
BringWindowToTop Application.hWndAccessApp
End Sub
-Tom. On Sat, 19 Mar 2005 20:53:10 -0700, Tom van Stiphout <no*************@cox.net> wrote:
Thanks a LOT Tom.
Well, I tried this. The code executes just fine but it makes no difference whatsoever -- Outlook doesn't even flicker -- it just stays on top. Go figure.
Anyone else have a clue why this is happening? On Sat, 19 Mar 2005 21:25:11 -0600, Lauren Wilson <pr*****@nospam.com> wrote:
It's a Windows API call.
Put this in a module: Public Declare Function BringWindowToTop Lib "user32" Alias "BringWindowToTop" (ByVal hwnd As Long) As Long
Then call it using code like: Shell "outlook.exe", vbNormalNoFocus 'no focus does not work. BringWindowToTop Application.hWndAccessApp 'bring my Access app back to the foreground
-Tom.
On Sat, 19 Mar 2005 18:17:41 -0700, Tom van Stiphout <no*************@cox.net> wrote:
Please forgive my ignorance -- BringWindowToTop API? Where is that?
On Sat, 19 Mar 2005 18:52:05 -0600, Lauren Wilson <pr*****@nospam.com> wrote:
Apparently Outlook is trying to be too helpful, thinking it knows best. Perhaps you can use the BringWindowToTop API to set focus back to where you want it.
-Tom.
>Hi folks, > >In an A2K app, I have attempted to use the following command in some >VBA code with IDENTICAL results with every single version of the >following: > >Shell "outlook.exe", vbHide >Shell "outlook.exe", vbNormalFocus >Shell "outlook.exe", vbMinimizedFocus >Shell "outlook.exe", vbMaximizedFocus >Shell "outlook.exe", vbNormalNoFocus >Shell "outlook.exe", vbMinimizedNoFocus > >In every instance above, Outlook loads and shows me the Outlook window >and just stays there! All I want to do is to load Outlook in the >background and stay focused on the form that I was on when the command >was issued. > >IOW -- the command arguments simply do not work as documented. Anyone >have a clue what I'm overlooking? > >Thanks in advance. > >-- LW
Lauren Wilson <pr*****@nospam.com> wrote in
news:rs********************************@4ax.com:
I think that to open Outlook minimized one must not have the Open Outlook Today
option selected.
Outlook Today -> Customize Outlook Today
--
Lyle
-- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Brandon J. Van Every |
last post by:
I'm realizing I didn't frame my question well.
What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump
up in your chair and...
|
by: Yann.K |
last post by:
Hello.
Using Tkinter, i would create a widget which display a shell command return.
This return is long, and i would display a real time display...
|
by: Joe |
last post by:
I'm using Python 2.4 on Windows XP SP2.
I'm trying to receive a command line argument that is a newline (\n)
Here is the command line to use
...
|
by: Trips |
last post by:
Hello Folks
I have been having headache solving this and now I need your help
I have developed an windows application which access network...
|
by: bbxrider |
last post by:
for win2k adv server/iis5.0
trying to run an external program from my asp routine that has multiple
parameters, see following
set shell =...
|
by: Siemel Naran |
last post by:
Hi. I'm writing a command shell that reads commands from standard input.
At this point I have the command in a std::string. Now I want to execute...
|
by: Mr Utkal Ranjan |
last post by:
Hi Friends
I want to launch notepad with a specific file on a
command click event. So I was using the "Shell" function
from VB on a command...
|
by: micahstrasser |
last post by:
I have been trying for days to send a command to the command prompt
through the shell() function in vb.net. For some reason it is not
working. ...
|
by: Samuel A. Falvo II |
last post by:
I have a shell script script.sh that launches a Java process in the
background using the &-operator, like so:
#!/bin/bash
java ... arguments...
|
by: tammygombez |
last post by:
Hey everyone!
I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
|
by: concettolabs |
last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
|
by: teenabhardwaj |
last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
|
by: CD Tom |
last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
|
by: CD Tom |
last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
|
by: jalbright99669 |
last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was...
|
by: Matthew3360 |
last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function.
Here is my code.
...
| |