什么应用程序可以用鼠标控制?

发布于 2024-09-16 03:07:18 字数 137 浏览 3 评论 0原文

用户在游戏(桌面或网络)中作弊的一种方法是让“机器人”监视屏幕并为他们移动鼠标。有没有一种方法(当然具有透明度和用户许可)来监视应用程序是否正在控制鼠标?我主要对 Windows 应用程序感兴趣,但如果有一种适用于其他操作系统的方法,了解一下也很有用。 谢谢!

One way users can cheat with games (desktop or web) is by having "robots" monitor the screen and move the mouse for them. Is there a way (of course with transparency and user permission) to monitor if an application is controlling the mouse? I am primarily interested in a windows app, but if there is a way for other OS's that would be useful to know as well.
Thanks!

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

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

发布评论

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

评论(3

风尘浪孓 2024-09-23 03:07:18

不应该有。任何合理设计的 UI 层只会将有关鼠标、键盘等输入的事件传递给应用程序。这些事件通常不包含有关事件如何生成的信息(您不应该关心,所以为什么要为此付出代价)。

一种方法可能是扫描系统以查找具有已知“事件造假者”名称的进程,就像某些防病毒程序按名称将应用程序列入黑名单一样。

There shouldn't be. Any sensibly designed UI layer will only pass events to the applications, about inputs such as mouse, keyboard etc. Those events will typically not include information about how the event was generated (you're not supposed to care, so why pay for that overhead).

One way might be to scan the system for processes having names of known "event-fakers", much like some anti-virus programs blacklist applications by name.

狼性发作 2024-09-23 03:07:18

在 Windows 上,您可以添加 挂钩监视注入的键盘或鼠标消息,
如果您愿意的话,删除它们。

但我不确定你是否能找到消息的来源。

On Windows you can add a hook to monitor for injected keyboard or mouse messages,
and remove them if you like.

But I'm not sure if you can find the source of the messages.

梦幻的心爱 2024-09-23 03:07:18

只是一个想法:
获取当前鼠标位置并检查快速位置变化。
就像从 (10,15) 到 (1000, 400) 一样。
大多数机器人只是设定一个新位置,并不会模仿人类鼠标的运动。

Just an idea:
Get the current mouse position and check for fast position changes.
Like from (10,15) to (1000, 400).
Most robots just set a new position and don't imitate the human mouse movement.

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