I want RegRead to read variables and return them to me in a msgbox.
First I copy an example for my template from https://autohotkey.com/docs/commands/RegRead.htm
Code: Select all
RegRead, OutputVar, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion, ProgramFilesDir
MsgBox, Program files are in: %OutputVar%
So, I could think i could just copy and paste the above and change the locations and let it read any value from the registry so my script goes as
Code: Select all
RegRead, OutputVar, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion, ProgramFilesDir
MsgBox, Program files are in: %OutputVar%
RegRead, OutputVar, HKEY_LOCAL_MACHINE\SOFTWARE\Dropbox\Client, Version
MsgBox, Dropbox version is: %OutputVar%
RegRead, OutputVar, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FC4A0E2E-0CD3-11E6-B80E-005056951CAD}, DisplayVersion
MsgBox, Evernote Display Version is: %OutputVar%
second entry shows no value (Blank)
third entry also shows no value (Blank)
It doesn't matter where I go, everywhere returns a blank value except that example template.