RegRead

Reads a value from the registry.

Syntax

RegRead,<HKEY>,<Section>,<Key>,<%Variable%> 
Valid HKEY values
Details on the functions of each hive can be found at the Microsoft Site.
Valid key type values

Example:

RegRead,HKLM,Build\ControlSet001\Services\VgaSave\Device0,DefaultSettings.XResolution,%myXresolution% 

In this example the variable %myXresolution% will store the value of the mentioned key