Where's the reference about InternetExplorer.Application?
Set objIE=CreateObject("InternetExplorer.Application")
Have some properties of objIE or objIE.Document to let the IE window to be
on the top (Active) and cann't be closed?

Thanks,
-Andrew

Re: Reference for InternetExplorer.Application by mayayana

mayayana
Tue Dec 04 13:42:38 PST 2007


> Where's the reference about InternetExplorer.Application?

http://msdn2.microsoft.com/en-us/library/aa752084.aspx

(If the page is non-functional in Firefox select View ->
Page Style -> No Style. MS is deliberately trying to make
life difficult for non-IE users on MSDN2.)

> Set objIE=CreateObject("InternetExplorer.Application")
> Have some properties of objIE or objIE.Document to let the IE window to be
> on the top (Active) and cann't be closed?
>
I hope not. What makes you think you have the
right to lock someone's computer screen?




Re: Reference for InternetExplorer.Application by AndrewHUANG

AndrewHUANG
Wed Dec 05 08:08:02 PST 2007

Thanks, mayayana.

> > Have some properties of objIE or objIE.Document to let the IE window to be
> > on the top (Active) and cann't be closed?
> >
> I hope not. What makes you think you have the
> right to lock someone's computer screen?

In my project, I just used the IE to display the progress, if close it,
error will come out. And after run the VBScript, the IE window sometimes is
not actived, so can not see the progress window. Sure, I'm not the right and
I've never wanted to have.

Regards,
-Andrew

"mayayana" wrote:

>
> > Where's the reference about InternetExplorer.Application?
>
> http://msdn2.microsoft.com/en-us/library/aa752084.aspx
>
> (If the page is non-functional in Firefox select View ->
> Page Style -> No Style. MS is deliberately trying to make
> life difficult for non-IE users on MSDN2.)
>
> > Set objIE=CreateObject("InternetExplorer.Application")
> > Have some properties of objIE or objIE.Document to let the IE window to be
> > on the top (Active) and cann't be closed?
> >
> I hope not. What makes you think you have the
> right to lock someone's computer screen?
>
>
>
>

Re: Reference for InternetExplorer.Application by mayayana

mayayana
Thu Dec 06 06:50:20 PST 2007



>
> > > Have some properties of objIE or objIE.Document to let the IE window
to be
> > > on the top (Active) and cann't be closed?
> > >
> > I hope not. What makes you think you have the
> > right to lock someone's computer screen?
>
> In my project, I just used the IE to display the progress, if close it,
> error will come out. And after run the VBScript, the IE window sometimes
is
> not actived, so can not see the progress window. Sure, I'm not the right
and
> I've never wanted to have.
>
I don't think there's much you can do other than
try to control when you open the window in order
to get it on top.

It's difficult to even put one's own window on top
from "inside" a running program. There's a function
in the Windows API to do it - SetForegroundWindow.
But in later versions of Windows MS changed the
function such that it would cause a flashing taskbar
icon rather than actually moving a window to the top.
Apparently MS felt that programmers were overusing
the function. They seem to have now gone too far
in the other direction. A friend of mine who's been
playing with Vista told me the biggest problem was that
relevant message windows were constantly getting lost
in the window pile. :)

There's a component here:
www.jsware.net/jsware/scripts.php3#jssys

It has a function called SetWindowActive that uses a
well-known hack to set a given window on top, based
on the window title. The downside is that you'd need
to copy and register the component, and even then
it's not guaranteed to always work properly, due to the
restrictions described above. You'd have to test it in
the situation where it's being used.

Also, even that function can't lock the window into
an on-top position. I think that can only be done within a
running program, between windows that you "own".




Re: Reference for InternetExplorer.Application by mayayana

mayayana
Thu Dec 06 12:30:21 PST 2007

> Also, even that function can't lock the window into
> an on-top position. I think that can only be done within a
> running program, between windows that you "own".

Woops. Actually that's not true. A window can be put
on top of all windows, but it's not something
available in script.