Archived
1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
U3Helper/mb_RegTools.ahk
2007-10-05 18:10:14 +00:00

25 lines
409 B
AutoHotkey

#Include mb_TextTools.ahk
RegDeleteX(RegRoot, RegSub)
{
RegDelete %RegRoot%, %RegSub%
StartRDX:
SplitLast(RegSub, RegKey, RegSub, "\")
if (RegCount(RegRoot, RegSub) = 0 and InStr(RegSub, "\") != 0)
{
RegDelete %RegRoot%, %RegSub%
Goto StartRDX
}
Return true
}
RegCount(RegRoot, RegSub)
{
Ct = 0
Loop %RegRoot%, %RegSub%, 1, 0
{
Ct++
}
Return Ct
}