Code:
$HexValue = ReadValue('HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs','0')
For $i=1 to Len($HexValue) Step 2
  $z=$z+Chr(Val("&"+SubStr($HexValue,$i,2)))
Next
$=MessageBox($z,"info")

This is basically how you can read the code.