Re: CreateObject("InternetExplorer.Application") Takes focus! by Rafael
Rafael
Tue Jun 21 19:54:22 CDT 2005
Sorry, I don't know if it is possible to create and object, make it
available and minimize it (remove focus).
I took a look at the shell commands and the only thing available is the
minimizeAll and undoMinimizeAll.
maybe someone knows how to do that, i just can say it's impossible because
there might be a trick to do it.
RT
"J" <A@b.c> wrote in message news:ur7WgmpdFHA.3012@tk2msftngp13.phx.gbl...
> Is there anyway to let it be visible and not take the focus?
>
> This script basically opens several IE windows does some automation and
> then stops when a user's intervention is required.
>
> Ideally, I would like the script to create these webpages in the
> background and still be visible to the user. This way, when the user has a
> moment he will deal with the webpages. Without the webpages constantly
> interfering with his work...
>
> Is this possible?
>
> "Rafael T" <okinawapro@hotmail.com> wrote in message
> news:%23H2D5SjdFHA.1684@TK2MSFTNGP09.phx.gbl...
>> your line just creates the object. It does not display with it.
>> Usually you will have a line like:
>>
>> oIE.Visible = 1
>>
>> to make it visible, so change the 1 to 0 and it should not bother your
>> users until it is time(when you set it)
>>
>> RT
>>
>>
>>
>> "J" <a@b.c> wrote in message
>> news:eVujVxhdFHA.1612@tk2msftngp13.phx.gbl...
>>> When I write a script with the line
>>>
>>> Set oIE = CreateObject("InternetExplorer.Application")
>>>
>>> The newly created Internet Explorer App takes the keyboard and mouse
>>> focus away from the active application.
>>>
>>> Since this script runs in the background while the user is working, its
>>> is really annoying to the users and they usually have to stop working
>>> until the script finishes.
>>>
>>> Is there any way to do this without stealing the focus?
>>>
>>
>>
>
>