The AutoShow control
The IE ScriptBar ships with a special ActiveX control
designed to make visible the toolbar in a very simple manner.
All you need to do is instantiate the control in any page -
nothing else. First let show a sample HTML code that does this:
<object classid="clsid:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX" width="0" height="0"></object>
You must replace the CLSID (marked with green X-s) with the
CLSID of the AutoShow control from your package (see the
readme.txt in the package for the CLSID).
This can be used in various cases. One that is interesting
for the most developers is showing the toolbar after the setup.
There is an AutosShow.htm in each demo or final development
template package which is already prepared for the purpose - you
can just re-design the page - put information relevant to your
toolbar in it and use it in your setups. The setup.cfg in the
development templates shows that page after the setup is
finished (See LaunchURL in the MAIN section) so there is nothing
else you need to do.
Another interesting usage is an online page that forces the
toolbar to show up. This is especially useful if the toolbar you
create is designed to cooperate/work over your site or sites.
For example it may provide quick access to search pages,
autologin, keep user data locally and so on. In such case you
can embed the control on your home page or even in more pages.
If you want to include it in each page on the site you can use
the WEB server's page footer feature to add the needed HTML code
to each page served by it.
When this would not work?
Apparently this feature depends on the ActiveX security
settings. Therefore it will work in any scenario in which
"safe for initialization" ActiveX can be
instantiated on the page. This practically means that the
feature will not work only if the user has forbidden all the
ActiveX for the IE security zone of the page. Such a situation
is a considered as emergency or panic and it is doubtful that
an user who did this would install anything while he/she keeps
the machine in this state, so in almost all the practical
cases the AutoShow feature does not need additional
Fiddling with the security zones of the AutoShow page.
This concerns the scenario in which you use the AutoShow.htm
in the end of the setup. You may want to instruct IE to treat
it as a page from the Internet zone. To do so you can add
lines like these in the beginning:
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(XXXX)http://www.mysite.com/ -->
Where XXXX is the length of the URL in characters (use
decimal number). This will effectively declare the page as
downloaded from the specified site. Also you can use the
ALPInstall's (int)SetZoneId=X setting for the HTML file
in setup.cfg where X is the zone ID (0 to 4, 3 is internet).
This is already used in the setup.cfg files of the development
templates, so you can follow the same pattern if you want to
add some more files or change the value if you wish to use