RegRead: what am I missing here?
Posted: 21 Aug 2017, 05:30
Hi all,
Brand new to AHK, but not new to coding. I installed AHK to play with and already have run into an issue.
I'm just trying to read the value of a reg key, and it's coming back empty (I've confirmed there's in fact, a value in the actual registry key itself). I copied & pasted the exact RegRead code straight from the help file, changing only the key.
Here's the entire code in my file so far:
then when I run it using SciTE4AutoHK (or even directly via a command prompt, the messagebox just shows no value returned?
Running this on Windows 10 x64. Any ideas? Thought this lang was supposed to be almost n00b-proof?![Razz :P](./images/smilies/icon_razz.gif)
Brand new to AHK, but not new to coding. I installed AHK to play with and already have run into an issue.
I'm just trying to read the value of a reg key, and it's coming back empty (I've confirmed there's in fact, a value in the actual registry key itself). I copied & pasted the exact RegRead code straight from the help file, changing only the key.
Here's the entire code in my file so far:
Code: Select all
#NoEnv
#Warn
SendMode Input
SetWorkingDir %A_ScriptDir%
RegRead, OutputVar, HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\VirtualBox, InstallDir
MsgBox, Program files are in: %OutputVar%
![Crazy :crazy:](./images/smilies/icon_crazy.gif)
Running this on Windows 10 x64. Any ideas? Thought this lang was supposed to be almost n00b-proof?
![Razz :P](./images/smilies/icon_razz.gif)