| 本帖最后由 哥又回来了 于 2022-2-26 17:38 编辑 
 WinDbg Preview 1.2202.7001.0仿 x64dbg/Ollydbg默认按键习惯替换脚本
   最近学习使用Windbg来进行调试,
 https://docs.microsoft.com/zh-cn ... d-shortcuts-preview
 发现默认的按键实在用起来别扭啊
 故此花费些时间研究了下:
 简单的使用AutoHotkey来写了个脚本来替换使用
 参考微软帮助,外加结合实践中操作了一下,把使用最频繁,必须用到的几个热键修改替换了下,使用效果尚可,故此分放出来分享下吧。
  需要自己下载安装一下:https://www.autohotkey.com/download/ahk-install.exe
 
 
 [AppleScript] 纯文本查看 复制代码 
;x64dbg/Ollydbg默认按键习惯替换脚本:
F8::            ;单步步过【默认F10】
        IfWinActive, ahk_exe DbgX.Shell.exe
        {
                Send,{F10}        ;窗口激活后执行的内容
        }
        else
        {
                IfWinExist, ahk_exe DbgX.Shell.exe
                {
                        WinActivate, ahk_exe DbgX.Shell.exe
                        Send,{F10}
                }
                else
                        MsgBox,不存在指定的窗口
        }
return
F7::            ;单步步入【默认F8/F11】
        IfWinActive, ahk_exe DbgX.Shell.exe
        {
                Send,{F8}
        }
        else
        {
                IfWinExist, ahk_exe DbgX.Shell.exe
                {
                        WinActivate, ahk_exe DbgX.Shell.exe
                        Send,{F8}
                }
                else
                        MsgBox,不存在指定的窗口
        }
return
F9::            ;运行【默认F5】
        IfWinActive, ahk_exe DbgX.Shell.exe
        {
                Send,{F5}
        }
        else
        {
                IfWinExist, ahk_exe DbgX.Shell.exe
                {
                        WinActivate, ahk_exe DbgX.Shell.exe
                        Send,{F5}
                }
                else
                        MsgBox,不存在指定的窗口
        }
return
^F9::            ;执行到返回【默认Shift+F11】
        IfWinActive, ahk_exe DbgX.Shell.exe
        {
                Send,{Shift}{F11}
        }
        else
        {
                IfWinExist, ahk_exe DbgX.Shell.exe
                {
                        WinActivate, ahk_exe DbgX.Shell.exe
                        Send,{Shift}{F11}
                }
                else
                        MsgBox,不存在指定的窗口
        }
return
F2::            ;在当前行设置断点/取消断点【默认F9】
        IfWinActive, ahk_exe DbgX.Shell.exe
        {
                Send,{F9}
        }
        else
        {
                IfWinExist, ahk_exe DbgX.Shell.exe
                {
                        WinActivate, ahk_exe DbgX.Shell.exe
                        Send,{F9}
                }
                else
                        MsgBox,不存在指定的窗口
        }
return
 
 
 |