Process Explorer 中的可拖动十字准线如何工作?

发布于 2024-07-16 11:36:21 字数 243 浏览 5 评论 0原文

Sysinternal 的 Process Explorer 中有一项功能允许十字线从应用程序拖动到您正在运行的任何其他应用程序中的控件并突出显示该控件。

有谁知道这是如何实现的,或者是否有可以重用的 .NET/C++ 库?

There is a feature in Sysinternal's Process Explorer that allows a crosshair to be dragged from the application to a control in any other application you are running and highlights said control.

Does anyone know how this was achieved or if there is a .NET/C++ library out there that can be reused?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

内心激荡 2024-07-23 11:36:21

使用 Win32 API

  • GetCursorPos:获取光标位置(也许.NET有自己的函数来做到这一点)
  • WindowFromPoint:从特定窗口获取窗口句柄指向屏幕

更多信息

Using Win32 API

  • GetCursorPos: to get the cursor position (maybe .NET has its own function to do that)
  • WindowFromPoint: to get the handle of the window from a specific point in the screen

more info

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文