如何使自动按键盘 [英] How To Make Auto Press Keyboard

查看:83
本文介绍了如何使自动按键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮我制作自动按键盘(上,下,左,右)对于我的游戏



谢谢你,

Can someone help me to make auto press keyboard ( Up, down, left , right) For My Games

Thank you ,,

推荐答案

您可以使用 SendKeys .SendWait [ ^ ]方法:

You can use the SendKeys.SendWait[^] method:
SendKeys.SendWait("{UP}") ' up arrow
SendKeys.SendWait("{LEFT}") ' left arrow
SendKeys.SendWait("{DOWN}") ' down arrow
SendKeys.SendWait("{RIGHT}") ' right arrow



请注意,此方法会发送击键活动窗口。


Note that this method sends keystrokes to the active window.


这篇关于如何使自动按键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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