Windows Scripting
  Home arrow Windows Scripting arrow Page 2 - Controlling the Power on Your Windows XP P...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WINDOWS SCRIPTING

Controlling the Power on Your Windows XP PC
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2007-01-25

    Table of Contents:
  • Controlling the Power on Your Windows XP PC
  • 6.10 Personalizing Your PC’s Sounds
  • 6.11 Creating Power Schemes
  • 6.12 Extending Battery Life on a Laptop

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Controlling the Power on Your Windows XP PC - 6.10 Personalizing Your PC’s Sounds


    (Page 2 of 4 )

     

    Problem

    You want to personalize the sounds your PC makes for various system events, including recording new sounds of your own.

    Solution

    Using a graphical user interface

    1. If a microphone didn’t come with your PC, buy one and plug it into the microphone jack.
    2. Open the Sound Recorder (Figure 6-6) by choosing Start -> All Programs -> Accessories -> Sound Recorder, or typing mmsys.cpl at the Run box or command line and pressing Enter.
    3. Click the Record button, record your sound clip, and when you’re done, click the Stop button. When you record, speak in a normal tone of voice, about six


      Figure 6-6.  When you're recording with the Sound Recorder, Windows tells you how many seconds the sound will last

      inches from the microphone. Keep the clip short, because you don’t want sounds to last too long. A few seconds is ideal.
    4. Choose File -> Save and save the file to a folder. Note the location and the file-name (it ends in .wav). Exit the Sound Recorder.
    5. Now that you’ve recorded the sound, you need to tell XP to use it. Choose Start -> Control Panel -> Sounds, Speech, and Audio Devices -> Sounds and Audio Devices. On the Sounds and Audio Devices Properties dialog box that appears (Figure 6-7), click the Sounds tab. In the Program events list, select the event you want to associate with your sound.
    6. Click Browse and locate the .wav file you just recorded (or the existing file you want to use). Select it and click OK. When the Sounds and Audio Devices Properties dialog box appears again, click OK.
    7. From now on, Windows will use your sound with the associated event.

    Discussion

    Don’t expect to record high-quality sounds with an inexpensive microphone, so if sound quality is important, buy a more expensive one. You can use any .wav sound with a Windows event, not just ones you record. Make sure when choosing a .wav sound to associate with an event that the sound only lasts a few seconds—you don’t want it lasting well beyond the start of the event.

    Many people use sounds from TV shows, movies, or popular music to associate with Windows events. The law governing such use is murky at best. Some lawyers say such files violate copyright laws; others say that they are covered by the fair use provision of copyright laws, and so are legal. So follow your own conscience.

    See Also

    If you’re looking for a place with a big selection of .wav files you can use to associate with Windows events, go to http://www.wavcentral.com


    Figure 6-7.  Choose the event you want to associate with a sound, and then click Browse to find the sound

    More Windows Scripting Articles
    More By O'Reilly Media


       · This article is an excerpt from the book "Windows XP Cookbook," published by...
     

    Buy this book now. This article is excerpted from chapter six of the Windows XP Cookbook, written by Robbie Allen, Preston Gralla (O'Reilly; ISBN: 0596007256). Check it out today at your favorite bookstore. Buy this book now.

    WINDOWS SCRIPTING ARTICLES

    - A Portable Scripting Toolbox
    - WPF Through an Example: Introduction
    - Beginning SharePoint Web Part Development
    - More Alternative Languages for WSH
    - WPF Control Layout
    - WSH in Other Languages
    - Screen Capturing via GDI+ and GDI
    - Understanding Procedures in VBScript
    - Printing Documents in WSH
    - Generating Outlook Signatures Based on Activ...
    - VBScript: Converting and Formatting with Fun...
    - VBScript: Conversion and Format Functions
    - VBScript: Array Functions
    - VBScript: Strings, You Can`t Function withou...
    - VBScript: More String Functions





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway