本文介绍了如何使用ollydbg为按钮单击设置断点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用ollydbg为按钮单击设置断点?
How can I set a breakpoint for a button click using ollydbg?
我正在尝试在游戏客户端上禁用按钮单击,因此我想设置断点以捕获按钮单击事件.ollydbg可能会发生这种情况吗?
i am trying to disable a button click on game client, so i want to set break point to catch the button click event.is that possible to happen with ollydbg?
推荐答案
让应用程序创建窗口和按钮,然后将其暂停.
let application make window and buttons then pause it.
在ollyDBG 1中:
in ollyDBG 1 :
- 转到view > windows
- 选择按钮.
- 右键单击并选择Message breakpoint on ClassProc 在Messages:中选择202 WM LBUTTONUP
- 选择Break on all windows with same title
- 选择Pause program: On message
- 选择Log WinProc arguments: Never
- go to view > windows
- select your button.
- right click and select Message breakpoint on ClassProc
- in Messages: select 202 WM LBUTTONUP
- select Break on all windows with same title
- select Pause program: On message
- select Log WinProc arguments: Never
在ollyDBG 1或2中:
in ollyDBG 1 or 2 :
- 转到view > windows
- 选择按钮.
- 右键单击并选择Conditional breakpoint... Shift+F2
- 键入[ESP+8]==WM_LBUTTONUP作为您的条件并运行程序
- go to view > windows
- select your button.
- right click and select Conditional breakpoint... Shift+F2
- type [ESP+8]==WM_LBUTTONUP as your condition and run program
这篇关于如何使用ollydbg为按钮单击设置断点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!