I have a CD with presentation made in HTML format (there are reasons for that). AutoPlay on Windows should open default browser and display presentation in full screen mode. How to achieve that?

link|improve this question
iexplore -k presentation.html is the best thing I came up with, but it's kiosk mode, not full screen and it opens IE, not default browser. – Stancell Sep 29 '11 at 17:16
feedback

migrated from stackoverflow.com Oct 1 '11 at 2:15

This question came from our site for professional and enthusiast programmers.

2 Answers

There are 2 possible modes to create a cd/dvd that will autorun to open the html file in a full screen mode.

1) Using a windows shell to maximize it. 2) Using a JavaScript

1)Using Windows Shell Method:

The following autorun.inf file invokes the command processor to start a full screen browser on the html file "index.htm":

[autorun]
open=command /c start /max index.htm

Note: Use of "command" & "start" restrict this to machines running Windows OS. So this won't be supported on other platforms.

2) Using a JavaScript

The following .inf file will invoke the browser:

[autorun]
ShellExecute=index.htm

now place the following script between Here goes your script tags :

<script type="text/javascript">
<!--
if (document.all || document.layers)
{
  window.moveTo(0,0);
  window.resizeTo(screen.availWidth,screen.availHeight)
} else if (window.screen) {
  window.moveTo(0,0);
  window.outerHeight = screen.availHeight;
  window.outerWidth = screen.availWidth;
}
//-->

Note: script wont maximize your window, it will just resize the browser window. This will run on all platforms.

link|improve this answer
Theese two methods doesn't open window in fullscreen, they just maximize browser window. – Stancell Oct 13 '11 at 9:23
@Stancell Did you read my note? – V413HAV Oct 13 '11 at 9:29
There are 2 possible modes to create a cd/dvd that will autorun to open the html file in a full screen mode. @V413HAV: That was misleading, because none of your specified methods open window in full screen mode. – Stancell Oct 21 '11 at 13:21
feedback
up vote 0 down vote accepted

Simplest method that worked for me was http://www.menubox.com/ launcher. There is one drawback - it uses integrated windows browser component instead of default browser and it ain't free.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.