AutoPlay icon

AutoPlay: AUTORUN.INF Advanced AutoPlay Settings

An easy-to-use AutoPlay function from James Greene for your CDs and DVDs

backPrevious Contentsnext

Advanced AutoPlay Settings in AUTORUN.INF

The following settings in AUTORUN.INF are only available when AutoPlay has been registered. For more information, please see Registering AutoPlay.

    [AutoPlay Data]
    CDTitle=Super-Duper CD
    HideSplash=0
    HideRegistration=0
    Splash=AUTOPLAY\MyPicture.png
    ImageWidth=300
    ImageHeight=300
    SplashMode=0
    OffsetAngle=90
    OffsetPercent=80
    PauseLen=3
    SplashLen=8
    AlternateSplash=0
    Music=AUTOPLAY\FanFare.wav
    MusicLen=4
    TimeOption=0

where

[AutoPlay Data] required

Identifies the beginning of the AutoPlay-specific settings in the AUTORUN.INF file.

CDTitle=Title optional

This option specifies the 'caption' of the Splash screen and of any other messages that may be Contentserated by AutoPlay.

Default: CDTitle=CD-ROM AutoPlay

HideSplash=[0 | 1] optional

If this option is set to a non-zero value, the splash screen will not be displayed (but you can still use the Music= and other AutoPlay functions). This has the same function as Splash=(none) in earlier AutoPlay releases.

Default: HideSplash=0

HideRegistration=[0 | 1] optional

If this option is set to a non-zero value, the AutoPlay registration information is hidden. The registration text is either the AutoPlay version and copyright, or, in the case of a commercial license, your company name.

Default: HideRegistration=0

Splash=image file optional

The image value specifies a JPEG (.JPG or .JPEG) picture, Windows Bitmap (.BMP), Device-Independent Bitmap (.DIB), Portable Network Graphics (.PNG), Windows MetaFile (.WMF), Windows Enhanced MetaFile (.EMF), or Aldus Placeable MetaFile (.APM) to be displayed in the "splash" pop-up window. New in version 2.2: Audio-video interleaved (AVI) files are now supported (allowing the splash image to be animated!)

Default: Splash=default AutoPlay image

ImageWidth=pixels optional

This value specifies the width of the Splash image. The AutoPlay splash window will be adjusted to display the image with this width.

Default: ImageWidth=300

ImageHeight=pixels optional

This value specifies the height of the Splash image. The AutoPlay splash window will be adjusted to display the image with this width.

Default: ImageHeight=300

SplashMode=0, 1 or 2 optional If you are using an AVI animation for the Splash image, this setting will tell AutoPlay how to play it. Possible settings are:
0 (play once)
The animation will be played once while the specified document or viewer loads in the background.
1 (repeat)
The animation will be played in an endless loop, until the splash window closes (see the Splash Time setting on the next page), or
2 (wait to finish)
The animation will be played once, and AutoPlay will wait until it has completed playing before loading the specified document or viewer.
OffsetAngle=angle in degrees optional

This value, together with the OffsetPercent setting, specifies where the AutoPlay splash screen will be placed on the screen. This value specifies the angle, relative to the center of the screen.

Default: OffsetAngle=0

OffsetPercent=0 to 100 percent optional

This value specifies how far from the center of the screen the AutoPlay splash screen should be displayed.

Default: OffsetPercent=0

PauseLen=seconds optional

Specifies how long (in seonds) the "splash" screen will be displayed before AutoPlay starts to launch the specified document and/or viewer. If not specified, AutoPlay does not pause before launching the document.
Default: PauseLen=0

SplashLen=seconds optional

Specifies how long (in seconds) the "splash" screen will be displayed on the screen.

Default: SplashLen=5

AlternateSplash=[0 | 1] optional

When this value is set to 1, AutoPlay uses an alternate Splash dialog box form, that contains only the splash picture. The Copyright text and Window title are not visible, and the splash picture is about 20% larger than the 'normal' dialog box.

Default: AlternateSplash=0

Music=Music file optional

This option specifies a (AVI, MIDI, RMI or WAV) file to be played when the CD is inserted.

Default: Music='' (none)

MusicLen=seconds optional

This option specifies the length (in seconds) of the specified music file. If this option is not specified, the MIDI player will be stopped when the "splash" screen is closed (after SplashLen seconds).

Default: MusicLen=SplashLen

TimeOption=[0 | 1] optional

When this value is set to 1, AutoPlay changes how it interpretes AUTORUN.INF: If a section exists in the file with the name [xxxx- yyyy], where xxxx is a "start" time and yyyy is the "end" time (both in 24-hour format), and the current system time is within this time span, then the settings will be taken from the [xxxx-yyyy] section instead of the [AutoPlay Data] section.

The following settings MUST be defined in the [AutoPlay Data] section:

[AutoPlay Data]
Copyright=...
OEMName=... (optional)
Registration=...
TopMost=...
DirFix=...
Debug=...
TimeOption=1

All other settings defined in the [AutoPlay Data] section will be used when there is no [xxxx-yyyy] setting defined for the current system time.

However, if you want AutoPlay to react differently between, say, 8:00am and 11:00am, then define an addition section in AUTORUN.INF as follows:

[0800-1100]
; This section defines how AutoPlay should act between 8:00am and 10:59am
Splash=...
SplashLen=...
PauseLen=...
ImageWidth=...
ImageHeight=...
Document=...
Viewer=...
ForceViewer=...
DefaultAction=...
CDTitle=...
Music=...
MusicLen=...
AlternateSplash=...

Default: TimeOption=0

See Also:

Copyright © 1999-2007 by James Greene. All rights reserved. Information subject to change without notice.