Re: detect if a sidebar panel is open in IE
- From: "Semjon Katatschkow" <skatatschkow@xxxxxxxxxxx>
- Date: Tue, 15 Aug 2006 01:55:37 +0200
If there is no way to determine through scripts whether a vertical sidebar
is open in IE, is it then maybe possible to use vbscript to read a registry
key in order to see whether a bar is open? I think, when a bar is opened in
IE, IE writes some info into the registry so that new instances of IE know
that they have to start with that bar open. If I only knew where to look in
the registry, it should be possible to write a script that checks for the
registry value. If the value is = open, then I could tell IE through a
script to close the bar and vice versa..
As far as ActiveX permission rights are concerned, you are right. Took me a
couple of hours to realise that in order to use Shell.Application, unsafe
activex has to be set to "allow". It seems "prompt" doesn't work for this.
Even if I set unsafe activex to "prompt", I still get a "permission denied"
from IE, only "allow" works. So I allowed the execution of unsafe activex
for LOCAL html files, created a vbscript html page and linked to it from my
favorites\links folder. Whenever I click the link in IE, it first redirects
itself to the local page on my harddisk and then that page executes the
vbscript and opens the vertical sidebar. for the internet zone unsafe
activex is still disabled.
"Alexander Mueller" <millerax@xxxxxxxxxxx> schrieb im Newsbeitrag
news:OeeAEq4vGHA.4688@xxxxxxxxxxxxxxxxxxxxxxx
Joe Fawcett schrieb:
I didn't realise you could use Shell.Application directly to show a
browser bar, don't you have to use the windows method to get hold of the
actual instance of IE?
IShellDispatch4 (the most recent extension to the Shell.Application) also
has a ShowBrowserBar-methode that automagically attaches to the
current IE-instance when executed inside an IE-script ... and unsafe
ActiveX is permitted for the zone the script is running in.
If your browser bar is a custom one I don't see how you can check.
IIRC Custom browser bands basically don't differ from built-in bands, both
have to implement a small subset of interface and register
CATID_InfoBand under 'Implemented Categories', as for vertical bands.
What happens if you try to hide when it's not there or vice versa?
Afaik there is no way in scripting at all to determine if a
browserbar is visible or not. One can simply force showing one or none.
MfG,
Alex
.
- Follow-Ups:
- Re: detect if a sidebar panel is open in IE
- From: Fosco
- Re: detect if a sidebar panel is open in IE
- From: Michael Harris \(MVP\)
- Re: detect if a sidebar panel is open in IE
- References:
- detect if a sidebar panel is open in IE
- From: Semjon Katatschkow
- Re: detect if a sidebar panel is open in IE
- From: Joe Fawcett
- Re: detect if a sidebar panel is open in IE
- From: Alexander Mueller
- detect if a sidebar panel is open in IE
- Prev by Date: Re: SQL query: Error as if column is not there?
- Next by Date: Re: VBScript and MSOffice
- Previous by thread: Re: detect if a sidebar panel is open in IE
- Next by thread: Re: detect if a sidebar panel is open in IE
- Index(es):
Relevant Pages
|