#NoEnv
SendMode Input
#NoTrayIcon
#SingleInstance ignore
; 注册表的HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Applets/Regedit
; 下的LastKey项保存了上一次浏览的注册表项位置,所以在打开注册表编辑器前修改它就行了
InputBox, NewLastKey, 注册表自动定位工具, 请输入要定位到的路径, , 800, 120
If(ErrorLevel = 1)
ExitApp
IfWinExist, 注册表编辑器 ahk_class RegEdit_RegEdit
{
WinClose
WinWaitClose
}
RegWrite, REG_SZ, HKEY_CURRENT_USER, Software/Microsoft/Windows/CurrentVersion/Applets/Regedit, LastKey, %NewLastKey%
Run, regedit.exe
AHK-简单实现的注册表定位脚本
最新推荐文章于 2023-03-29 22:08:31 发布