![autohotkey 同时重复击键](https://linux22.com/image/1500838/autohotkey%20%E5%90%8C%E6%97%B6%E9%87%8D%E5%A4%8D%E5%87%BB%E9%94%AE.png)
我现在明白了
设置标题匹配模式,3
设置按键延迟,350
^哦::
$停止 := 0
环形,
{
controlsend,,{a 30},ahk_pid 12144
controlsend,,{a 30}{s 30},ahk_pid 12144
controlsend,,{s 30},ahk_pid 12144
controlsend,,{s 30}{d 30},ahk_pid 12144
controlsend,,{d 30},ahk_pid 12144
controlsend,,{d 30}{w 30},ahk_pid 12144
controlsend,,{w 30},ahk_pid 12144
controlsend,,{w 30}{a 30},ahk_pid 12144
controlsend,,{w 30},ahk_pid 12144
controlsend,,{w 30}{d 30},ahk_pid 12144
controlsend,,{d 30},ahk_pid 12144
controlsend,,{d 30}{s 30},ahk_pid 12144
controlsend,,{s 30},ahk_pid 12144
controlsend,,{s 30}{a 30},ahk_pid 12144
if ($stop)
{
return
}
}
^p:: $停止 := 1
controlsend,,{a 30}{s 30} 发送 30 次“a”,然后发送 30 次“s”,但我想要 30 次“as”
重复 30 次的单次击键没有问题,但同时击键则无法同时工作。相反,它会按顺序工作。你能帮忙吗?
答案1
...但我想要 30 次“as”
我认为有两种方法可能会有帮助。
发送 {a}{s}; ; 或者 mystr:="as" ;设置一个字符串值 发送 %mystr%;发送字符串
循环:
mystr:="as" ;设置一个字符串值 循环,30 { 发送 %mystr%;发送字符串 }