将鼠标和击键发送到游戏应用程序. [英] Sending Mouse and Keystrokes to Game Applications.

查看:70
本文介绍了将鼠标和击键发送到游戏应用程序.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我打算用C#编写一个应用程序,以模拟从键盘到游戏应用程序的鼠标和按键.有人可以帮我继续吗?游戏使用Directx.

Hi,
I am planning to write an application in C# to simulate mouse and keypress from keyboard to a game application. Could some one help me how to proceed? The game uses Directx.

推荐答案

您需要先查找FindWindow和SendKeys.

在这里看看:如何:在代码中模拟鼠标和键盘事件 [ ^ ]
you''ll want to start by looking up FindWindow and SendKeys.

Have a look here: How to: Simulate Mouse and Keyboard Events in Code[^]


这篇关于将鼠标和击键发送到游戏应用程序.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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