Easy Hook教程 - 输出绘制的文本 [英] Easy Hook Tutorial - output drawed text

查看:105
本文介绍了Easy Hook教程 - 输出绘制的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有人能给我看一个简单的简单钩子教程,我将不胜感激:



程序挂钩chrome.exe或calc.exe并输出每个绘制的文本。 (对于calc.exe:MC MR MS M + M- Ce C 7 8 9等)



谢谢

If anyone could show me a simple easy hook tutorial it would be much appreciated:

the program hooks chrome.exe or calc.exe and outputs every drawed text. (in case of calc.exe: MC MR MS M+ M- Ce C 7 8 9 etc. )

thank you

推荐答案

由于一个非常明显的原因,不能有一个简单的教程:窗口挂钩不易使用,众所周知难以调试,等等。在达到你想要的结果方面,最简单的教程可能是最糟糕的。



我不建议你做你打算做的工作。为什么?我会解释一下。



计算器?从头开始自己实现计算器要容易得多,尤其是像calc.exe这样的草率计算器。铬?它有插件API,允许您以更简单的方式挂钩浏览器的事件。在任意应用程序中挂钩所有事件?从理论上讲,这在一般情况下是不可能的,而钩子肯定是不可能的。为什么这样?因为某些应用程序(实际上是一大类应用程序)在绕过Windows API和事件时做了很多事情。一个例子是WPF应用程序。



-SA
There cannot be an "easy tutorial" because of one very obvious reason: Window hooks are not easy to work with, notoriously hard to debug, and so on. Chances are, the easiest tutorials would be the worst, in terms of getting to the results you want.

And I don't recommend doing the works you are planning to do at all. Why? I'll explain.

Calculator? It's much easy to implement the calculator by yourself from scratch, especially such a sloppy one as calc.exe. Chrome? It has the plug-in API which allows you to hook browser's events in much easier way. To hook up all events in any arbitrary applications? It's theoretically impossible in general case, and certainly impossible with hooks. Why so? Because some application (a wide class of them, actually) do a lot of things bypassing Windows API and events. One example is WPF applications.

—SA


这篇关于Easy Hook教程 - 输出绘制的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆