If a lot of keys were created this way, would there be any disadvantages in the fact that a value is created and deleted each time?
Also it currently uses a REG_SZ, would it be better to say use a REG_BINARY or a REG_DWORD?
[EDIT: it seems that the standard way that AutoHotkey creates registry subkeys, via 'RegWrite, REG_SZ, %vRootKey%, %vSubKey%', also creates a default value with a blank string, rather than an empty default value or no default value.]
[based on]
Creating a Windows registry key with no default value (NOT blank) using AutoHotkey - Stack Overflow
http://stackoverflow.com/questions/2695 ... g-autohotk
Code: Select all
JEE_RegCreateKey(vRootKey, vSubKey)
{
RegWrite, REG_SZ, %vRootKey%, %vSubKey%
RegDelete, %vRootKey%, %vSubKey%, AHK_DEFAULT
Return
}