首页 \ 问答 \ 修改程序以假按下按钮(Modifying a program to fake a button press)

修改程序以假按下按钮(Modifying a program to fake a button press)

我有一个MFC应用程序(没有源代码)打开一个带有“更新”按钮的窗口,然后在单击后执行很长的更新。

我想修改程序,以便在创建窗口时(或其他地方,如DoModal),会向程序发送一条消息,使其认为按下按钮。

在Ida Pro和OllyDbg,我一直在玩这个有一段时间没有用。 我看了可能使用PumpMessage,但这并没有带来任何成功。

任何建议?


I have an MFC application that I was given (without source code) which opens a window with an 'Update' button, which then performs a very long update after being clicked.

I'd like to modify the program so that when the window is created (or somewhere else such as DoModal), a message is sent to the program to make it think that the button was pressed.

I've been toying around with this for a while in Ida Pro and OllyDbg to no avail. I looked at possibly using PumpMessage, but this did not bring any success.

Any advice?


原文:https://stackoverflow.com/questions/977045
更新时间:2020-12-09 22:12

最满意答案

您可以在同一文件夹中重新生成项目,Yeoman将提示您文件冲突(因此您将看到正在发生的变化,您将准备好解决这些冲突)。 然后,只需更改新代码,以便在您转移原始应用代码时与您的应用匹配。


You can regenerate the project in the same folder and Yeoman will prompt you on file conflict (so you'll see what is changing and you'll be ready to fix these conflicts). Then, just make changes to the new code so it match your app if you diverted from the original app code.

相关问答

更多
  • 我认为你应该看看流利的NHibernate 。 生成映射总能让你达到80%的标准,而且你还必须定制才能获得你想要的。 Fluent-NHibernate允许您使用编译安全和重构友好的API来映射实体。 I think you should look at Fluent NHibernate instead. Generating mappings always gets you to the 80% mark, and you still have to customize to get what you ...
  • 您也可以使用内置函数make_random_password for user in new_users: password = User.objects.make_random_password() user.set_password(password) # email/print password You can also use the built in function make_random_password for user in new_users: pass ...
  • 你究竟在做什么? 我想这也取决于你从哪里尝试生成代码(模型)。 Codesmith和MyGeneration的优点是,它们提供多种选项供您生成代码 - 例如,在MyGeneration中,您可以使用各种语言编写模板。 MyGeneration可以提供任何数据库和许多内置的生成器脚本的元模型 - 因此,如果您想生成SP,最简单的方法是使用MyGeneration的生成器 - 您可以在那里为CRUD SP找到生成器。 如果你想修改生成器,它还提供了一个相当不错的编辑器。 如果你正在构建一个DSL或其他东西(我的 ...
  • 您可以在同一文件夹中重新生成项目,Yeoman将提示您文件冲突(因此您将看到正在发生的变化,您将准备好解决这些冲突)。 然后,只需更改新代码,以便在您转移原始应用代码时与您的应用匹配。 You can regenerate the project in the same folder and Yeoman will prompt you on file conflict (so you'll see what is changing and you'll be ready to fix these conf ...
  • 这个基于Objective-C的SQLite仓库有一个简单的bash脚本,它将读取SQLite数据库并为您生成适当的ORM模型。 该URL是https://github.com/ziminji/objective-c-sql-query-builder 您只需配置一个小的属性文件,该文件将告诉bash脚本SQLite数据库在硬盘上的位置。 This Objective-C based repository for SQLite has a simple bash script that will read ...
  • 对于ZF1,您可以使用Zodeken,它提供了coplete crud界面。 zf2正在开发中。 https://code.google.com/p/zodeken/ https://code.google.com/p/zodeken2/ For ZF1, you can use Zodeken, it provide coplete crud interfaces. For zf2 is in developing. https://code.google.com/p/zodeken/ https://c ...
  • 那么有两个版本并在运行时和ui中绑定它们。 或者我不知道是否还在工作http://kthoms.wordpress.com/2011/09/28/moving-an-xtend-generator-into-its-own-plugin/ (至少这个想法应该仍然有效) what about having two versions and bind them in runtime and ui. alternatively i dont know if is still working http://ktho ...
  • 这是一个众所周知的问题: https : //github.com/slick/slick/issues/593 您应该能够通过自定义代码生成器来解决它。 在那里有一次尝试。 That's a know issue: https://github.com/slick/slick/issues/593 You should be able to work around it by customizing the code generator. There is an attempt in there.
  • http://yeoman.io/generators/上有很多选项 对于文档,可能是以下之一: https://github.com/Quramy/generator-ngdoc https://github.com/RobLoach/generator-docpad 将满足您的需求。 但请转到搜索页面。 有很多选择。 There are a lot of options on http://yeoman.io/generators/ For documentation, maybe one of: ht ...
  • 好的我明白了。 那么,据我所知,没有任何Python的代码生成器。 有一个很好的介绍如何在这里推出自己的。 实际上,这是一个未被充分利用的环境部分,我想这是因为它需要你使用IDE来编译项目,因为似乎只有IDE知道这些“生成器”,但MSBuild忽略了它们。 OK, I see. Well, as far as I know there isn't any code generator for Python. There is a good introduction on how to roll your o ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。