DirectX的游戏挂钩 [英] DirectX Game hook

查看:682
本文介绍了DirectX的游戏挂钩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图模仿游戏中的鼠标事件。该游戏使用DirectInput的,所以你不能使用SendMessage函数来发送鼠标事件/键盘事件给它,这基本上就是我在挂钩的游戏。

I'm trying to simulate mouse events in a game. The games uses DirectInput so you can't use SendMessage to send mouse events/keyboard events to it, that's basically why I have to hook in to the game.

此外,我不想用SendInput / mouse_events,本场比赛必须在后台运行,使鼠标事件。

Also I don't want to use SendInput/mouse_events, the game must run on the background and make mouse events.

我已经设法在游戏中的DLL挂钩,但现在接下来的问题是,我必须使鼠标事件和键盘(可能是主要的问题)。

I already managed to make a DLL hook in the game but now the next problem is that I have to make the mouse events and keyboards (probably the main problem).

先谢谢了。

推荐答案

相反,挂钩到你可以使用 GlovePIE ,它是一个内核级输入模拟器。你可以写下自己的脚本,然后使用它。所以,那么你需要与你的一个应用发送消息给GlovePIE,它会生成内核电平输入,因此这将在DirectX游戏的工作。

Instead of hooking into the game you could use GlovePIE, which is a kernel-level input emulator. You can write down your own script and then use it. So then you'll need to send message with your applicaton to GlovePIE and it will generate input on Kernel level, so this will work in DirectX games.

这篇关于DirectX的游戏挂钩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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