NirCmd is a program created by NirSoft. There is more information about it at http://www.nirsoft.net/utils/nircmd2.html. What it lets Rainmeter do is send commands to your computer much like the command prompt does. Along with that it can do things that the command prompt cannot do, like open your disc drive or creating a shortcut on the desktop.
Installation
Since NirCmd isn’t included in Rainmeter you need to download it and put it somewhere simple. I downloaded it from http://www.softpedia.com/get/System/System-Miscellaneous/NirCmd.shtml. Extract the folder and put it in the Rainmeter addons folder (C:\Program Files\Rainmeter\Addons for most users). After placing it in the folder run nircmd.exe and click copy to windows directory. Now you can use NirCmd with rainmeter.
Usage
NirCmd should be put into a meter in your skin under a bang or command such as LeftMouseUpAction or RightMouseDownAction. For example LeftMouseUpAction=!execute["#ADDONSPATH#NirCmd\NirCmd.exe" PUTCOMMANDHERE]. LeftMouseUpAction being what thing is happening to set off the !execute. The execute telling rainmeter to do what is in the brackets. “#ADDONSPATH#NirCmd\NirCmd.exe†is the program to execute and PUTCOMMANDHERE is where you will put the command that’s for later. (This can also be put in the [Rainmeter] section if you want to be able to click anywhere on the skin for it to work)
For Later (aka the commands)
The commands are what you are sending to NirCmd. Here are some of the commands but there is no way that I could describe how to use and put in every command, there are simply too many. You can find all of them at the first link I provided.
Sendkeys-used to send keystrokes to Windows applications. List at http://cpap.com.br/orlando/SendKeysMore.asp.
Example-["#ADDONSPATH#NirCmd\NirCmd.exe" sendkey 0xB5 press] this will open Windows Media Player (for me, it might open a different media player for you)
Infobox-opens a message box with a title and message. (infobox “message†“titleâ€)
Example- ["#ADDONSPATH#NirCmd\NirCmd.exe" infobox “this is a message box†“messageâ€]
Open Program-Opens a program and optionally hides it from view (if hide is on the only way to close is task manager). (exec show/hide “program pathâ€)
Example- ["#ADDONSPATH#NirCmd\NirCmd.exe†exec show “c:\ Program Files\7-Zip\7zFM.exeâ€]
Normal Command Prompt Entry- Used to send commands that the command prompt can use normally.
Example-["#ADDONSPATH#NirCmd\NirCmd.exe†execmd "command"]
Speak Words-Tells the system to speak from a file or text. (speak text/file “textspoken/filepathâ€)
Example- ["#ADDONSPATH#NirCmd\NirCmd.exe†speak text “This is text.â€]
Test Skin
Make a folder in your skins folder and label it NirCmd Tester. In that folder make a file named NirCmd.ini and a file named text.txt paste this code into the NirCmd.ini file
(if there are any grammatical errors message me don't post them here)