Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Behavior Writer
Digital Video Button Control
Mastering Macromedia Dreamweaver 3
Hide mouse on idle
Iconizer
Cache Loaded - Valentina
Volume of Sprite
Show Me the Movie
RUNNING LED's
Wait for DirectMedia Xtra Sprite v. 2.0
MediaMacros Xtras Mall
 

 

 

Behavior Prepare for movie (Sound Card and Screen Saver Check)

Added on 9/16/1999

 

Compatibilities:
D6_5 D7 D8 PC Script

Required Xtras:
Buddy API

This item has not yet been rated

Author: MediaMacros (website)

Checks for sound card and disables the screen saver. End director restores the screen saver.

--Code by Chuck Neal
--Chuck@mediamacros.coc

on prepareDirector
  global gOldSSav, gOldVolume
  --Check Sound Card
  if baSoundCard( ) = 0 then
    set continue = baMsgBox( "You do not appear to have a soundcard installed.  No audio will be heard if you choose to continue.  Click OK to continue without sound or cancel to exit.", "Continue?" , "OKCancel", "Stop" , 2 )
    if continue = "Cancel" then quit
  end if
  --Disable Screen Saver, save settings
  set gOldSSav = baSetScreenSaver( "" )
  --Hide taskbar
  baHideTaskBar(true)
  --Normalize Audio Volume (50%)  Works best with volume control in program
  set gOldVolume = baGetVolume( "wave" )
  baSetVolume( "wave" ,  50 )
end

on endDirector
  global gOldSSav, gOldVolume
  
  baSetScreenSaver (gOldSSav)
  baHideTaskBar(false)
  baSetVolume( "wave" ,  gOldVolume)
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail