2012/06/17

Windowsでモニターの電源を切るショートカットを作る

目の前にモニターがあるときは、ちょっと手を伸ばすだけでモニターの電源を切ることが出来ますが、離れた場所にあるモニターの電源を切るには、席を立って電源を切りに行くか、Windowsの電源プロパティーのタイマー設定を変更し放置するしかありませんが、そのどちらも合理的な方法ではありません。ちょっと工夫をすることでショートカットをダブルクリックするだけでモニターの電源を切ることが出来ます。

原文:How to Create a Shortcut to Turn Off Your Monitor in Windows

How To

多くの場合プログラム上でモニターの電源を切ることが出来ますが、Windowsの場合困難なため、"NirCmd"というShellとして動作するアプリケーションを使うことにしました。

1.NirCmdのインストール

NirCmdは通常のアプリケーションではなく、コマンドラインから引数を与えて実行することで、新たなウィンドウを開かずにディスプレイの電源を切ったり、CD-ROMのトレイの開け閉めをするなど、様々な機能を持ったコマンドラインユーティリティです。 ここからzipをダウンロードし、書庫に含まれている“nircmd.exe”を実行すると次のようなウィンドウが出るので、"Copy To Windows Directory"をクリックしインストールします。

nircmd-startup

Description

NirCmd is a small command-line utility that allows you to do some useful tasks without displaying any user interface. By running NirCmd with simple command-line option, you can write and delete values and keys in the Registry, write values into INI file, dial to your internet account or connect to a VPN network, restart windows or shut down the computer, create shortcut to a file, change the created/modified date of a file, change your display settings, turn off your monitor, open the door of your CD-ROM drive, and more...

System Requirements

This utility can work in all 32-bit Windows operating systems: Windows 9x/ME, Windows NT, Windows 2000, Windows XP, Windows Server 2003, and Windows Vista. However, some of NirCmd commands works only on Windows NT/2000/XP/2003/Vista.

2.ショートカットの作成

デスクトップを右クリックし、ショートカットの作成を選び、テキストボックスに次のように入力しショートカットを作ります。もし、モニターの電源をすぐに切りたい場合は、"cmdwait 1000"を"cmdwait 0"に変更するとディレイ無しですぐに電源を切ることが出来ます。

"%WINDIR%\nircmd.exe" cmdwait 1000 monitor off


make-shortcut

0 件のコメント: