向游戏发送钥匙 [英] Send keys to the game
本文介绍了向游戏发送钥匙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对我的英语不好我感到很抱歉
我需要sendkeys示例
我发现了
sendinput
方法
sendkeys
方法
sendmessage
方法
所有methots按下虚拟键,但游戏对此进行了保护
骑士在线的例子
Sendkeys.Send("a")
等工作
Sendkeys.Send("{TAB}")
不起作用
仅选项卡不起作用
我发现了
autoitx3.dll
它起作用了,但是它是com组件我有源代码(c ++)我需要.net(vb.net或c#)
它没用
自动keybot效果很好,但是我没有源代码
Windows虚拟键盘正常工作
ı必须在键盘(内核)而非虚拟(user32)上发送真实键!
请帮我吗?
解决方案
您已阅读参考文献吗?
SendKeys.Send [ SendKeys.Send(" ); // 或 SendKeys.Send(" );
试试
SendKeys.Send(" );
我不确定这是C#的问题,但如果尝试使用键值
您可以在 http://msdn上找到它们.microsoft.com/en-us/library/system.windows.forms.keys%28v = vs.71%29.aspx [ etc. work
Sendkeys.Send("{TAB}")
doesn''t work
only tab doesn''t work
i found
autoitx3.dll
it worked but it com component i have source code(c++) i need .net(vb.net or c#)
it isn''t useful
auto keybot it work very well but i haven''t source code
Windows Virtual Keyboard is work
ı have to send real key on keyboard(kernel) not virtual(user32) !
Help me please ?解决方案Did you read the reference?
SendKeys.Send[^]
Probably you used the wrong syntax. Instead of
SendKeys.Send( "TAB" ); // or SendKeys.Send( "9" );
try
SendKeys.Send( "{TAB}" );
I''m not sure this is a question for C# but if it is try using the key value
You can find them on http://msdn.microsoft.com/en-us/library/system.windows.forms.keys%28v=vs.71%29.aspx[^]
For TAB is 9.
这篇关于向游戏发送钥匙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文