Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can a web page talk to Windows API, override Control panel settings, or talk to IE directly as an object?

1 view
Skip to first unread message

Tony Olsen

unread,
Oct 4, 2001, 2:57:50 PM10/4/01
to
Can a web page talk to Windows API, override Control panel settings, or talk
to IE directly as an object?

I found out that my CD-ROM settings, in the control panel, have the CD ROM
automatically load up whenever a CD is inserted. I have an HTML web page on
a CD that accesses multimedia from other CDs and this setting makes the web
page reset everytime I insert a new CD. Turning this setting off fixes the
problem, but I don't want to have everyone one of my users to have to change
their Control panel settings to ensure this product works.

Is there a way to tell Windows or IE to override the Control panel settings
for the web page loaded?

If not, is there a way to load up a way page as "static", meaning that it
doesn't need to keep reloading itself whenever the CD is re-inserted?

Thanks in advance, =)

Tony =)

P.S. Please include my e-mail address " Fer...@Myself.Com " in all replies
so that I get responses ASAP. Thanks. =)


Goofy

unread,
Oct 4, 2001, 3:21:27 PM10/4/01
to
> Can a web page talk to Windows API, override Control panel settings, or
talk
> to IE directly as an object?
>
> I found out that my CD-ROM settings, in the control panel, have the CD ROM
> automatically load up whenever a CD is inserted. I have an HTML web page
on
> a CD that accesses multimedia from other CDs and this setting makes the
web
> page reset everytime I insert a new CD. Turning this setting off fixes
the
> problem, but I don't want to have everyone one of my users to have to
change
> their Control panel settings to ensure this product works.
>
> Is there a way to tell Windows or IE to override the Control panel
settings
> for the web page loaded?
>

I would think that you need to write a progam that turns off this setting
when
the autorun is run. However, I wouldn't want you changing the settings on my
computer without changing it back!

> P.S. Please include my e-mail address " Fer...@Myself.Com " in all replies
> so that I get responses ASAP. Thanks. =)

Nope, Come and get the messages in the NG.

Jay Eckles

unread,
Oct 5, 2001, 8:47:25 AM10/5/01
to
This has nothing to do with HTML really, so I'm not replying to
alt.comp.html and comp.infosystems.www.authoring.html.

"Tony Olsen" <Tony....@worldnet.att.net> wrote in message news:<Oi2v7.64613$W8.18...@bgtnsc04-news.ops.worldnet.att.net>...
> Can a web page [snip] talk


> to IE directly as an object?

Yes.

Insert the following tag in the body of your document:

<object id="IEWB" width=0 height=0
classid="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></object>

and you'll be able to access IEWB as an object from client-side script
like VBScript. Here's an example of a script that allows the web page
to launch menu items like File/Save, File/Print, Favorites/Add to
Favorites, etc. with a hyperlink, button, or with no user interaction
at all:

<script language=vbscript>
SUB DoCmd(cmd, opt)

on error resume next
IEWB.ExecWB cmd, opt, 25, 75
if Err.Number > 0 then
errortext = "There was an error with the operation"& Chr(13) &
Chr(10) &"you attempted to perform."& Chr(13) & Chr(10) &"Please call
1CALL and give them"& Chr(13) & Chr(10) &"the following information:"&
Chr(13) & Chr(10)
if cmd = 4 then
errortext = errortext & "command: save" & Chr(13) & Chr(10)
end if
MsgBox ( errortext & CStr(Err.Number) & Chr(13) & Chr(10) &
Err.Description)
end if

END SUB
</script>

Check MSDN for all the info on this:
http://msdn.microsoft.com/library/default.asp?url=/workshop/entry.asp

Good luck.

Jay Eckles
www.jayeckles.com

0 new messages