Re: detect if a sidebar panel is open in IE



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


.



Relevant Pages

  • Re: Search Pane solution??
    ... You will see on that page an icon to download the Side Bar as a registry ... download and run the appropiate registry script... ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Address bar not always appearing
    ... I'm writing an application in Perl that opens a saved document in IE. ... I always see the address bar that way, so I learned the necessary VB Script ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • cannot load script in Front Page window
    ... script that uns that loads my menu bar on the right side of my web pages. ... the subpage.htm files, the menu opens fine. ...
    (microsoft.public.frontpage.client)
  • Removing the IE address bar.
    ... I have successfully been able to remove the IE address bar for generic users ... by running a script that sets the the following registry ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Modifying a record field value while not blocking it to others
    ... And of course again the record you are trying to modify has not to be 'open' ... someone opens that ID=12 record everything in it is locked. ... often add a script line which opens a random record if the file holds enough ... system where customers use Credits when renting items and get Credits ...
    (comp.databases.filemaker)