简体   繁体   English

创建脚本来在游戏中来回走动吗? 使用自动热键

[英]Create a script for walking back and forth in a game? Using Auto Hotkey

i'm trying to create a little script to walk back and forth in a game. 我正在尝试创建一个小脚本来在游戏中来回走动。

This is what i've wrote so far.. 这是我到目前为止写的。

IfWinExist, Nox App Player
MouseMove, 2531, 418
WinActivate, Nox App Player
Send, {W down}
Sleep, 10000
Send, {W up}
Send, {S down}
Sleep, 10000
Send, {S up}

It do not seems like it recognize that he hold downs the following keys? 似乎不知道他按下了以下键?

您可以尝试“ Sendinput,{w down}”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM