RegKey Syntax

From SingularityShift

Jump to: navigation, search

When specifying RegKeys in a single value field inside an AHK function (particularly in SteamLab) it is very important you use the correct syntax.

[edit] Syntax

"RootKey\Path\[Key]"

[edit] Examples

RegKey := "HKEY_LOCAL_MACHINE\SOFTWARE\Valve\Steam\InstallPath" ; InstallPath key
RegKey := "HKLM\SOFTWARE\Stardock\Impulse\Path" ; Path key
RegKey := "HKLM\SOFTWARE\Stardock\Impulse\" ; Default value (often not set)

[edit] Notes

  • RootKey can be in the form of HKEY_LOCAL_MACHINE or the shortened HKLM
  • All slashes should be backslashes (\)
  • If specifying the default key value, simply put a slash on the end of the path (do not specify Default)
  • If specifying a key value other than default, place it after the path, and do not put a slash on the end
Personal tools