Microsoft KB Archive/84038

{|
 * width="100%"|

Assigning a Shortcut Key to a Windows 3.1 Screen Saver

 * }

Q84038

-

The information in this article applies to:


 * Microsoft Windows versions 3.1, 3.11

-

SUMMARY
In Microsoft Windows, you can assign a shortcut key to a screen saver.

MORE INFORMATION
The following steps demonstrate how to assign a Program Manager shortcut key to a Windows 3.1x or Windows for Workgroups 3.1x screen saver:

  Using a text editor such as Notepad, change the line in the WIN.INI file that reads Programs=com exe bat pif to: Programs=com exe bat pif scr If you made this change from within Windows, quit and then restart Windows.  Add a screen saver icon to a program group using these steps:

 Open Program Manager. From the File menu, choose New. Select the Program Item option button. Choose OK. Enter the description in the Description box. Enter the command line in the Command Line box (see the table below).</li> To assign a shortcut key in the Shortcut Key box, press and hold down the CTRL key and then press the key you want to use as a shortcut.</li></ol> </li></ol>

The following table lists the command line to use for each screen saver included with Windows 3.1:

<pre class="FIXEDTEXT">  Screen Saver            Command Line Blank Screen           SCRSAVE.SCR Flying Windows         SSFLYWIN.SCR Marquee                SSMARQUE.SCR Mystify                SSMYST.SCR Starfield Simulation   SSSTARS.SCR

Configuring the Screen Saver's Options
To configure the screen saver's options, press the shortcut key or double- click the screen saver's icon and make changes in the dialog box that appears.

Starting the Screen Saver
To start the screen saver by double-clicking the icon or pressing the shortcut key, edit the screen saver icon's properties to include the &quot;/s&quot; switch on the command line. To do this, select the icon, choose Properties from the File menu, and add the switch to the end of the command line in the Command Line box. For example, a screen saver icon's Command Line might read:

<pre class="CODESAMP">     ssflywin.scr /s