gpt4 book ai didi

autohotkey - 什么时候应该在 Autohotkey 中使用 `Sent` 超过 `SentInput`?

转载 作者:行者123 更新时间:2023-12-02 01:27:19 25 4
gpt4 key购买 nike

Autohotkey documentation写道:

SendInput is generally the preferred method to send keystrokes and mouse clicks because of its superior speed and reliability. Under most conditions, SendInput is nearly instantaneous, even when sending long strings. Since SendInput is so fast, it is also more reliable because there is less opportunity for some other window to pop up unexpectedly and intercept the keystrokes. Reliability is further improved by the fact that anything the user types during a SendInput is postponed until afterward.



SendInput通常首选, sent 的用例是什么? ahk 更好吗?什么时候开始 Sent赢得 Sent对比 SentInput决定?

最佳答案

您应该考虑在 SendPlay 之间切换和 SendInput仅当您对当前设置有问题时。如果在激活长宏时键入,则 SendInput 会导致问题。您的命令可能与宏混合,导致不良行为。教程说SendPlay是“旧游戏不支持”,但我从来没有遇到过问题。有人可能会评论“您使用 AHK 的次数还不够多”。也许会。

此外,在从 SendPlay 切换到 SendInput 之前,您应该尝试将宏一分为二。例如,“保存控制组,做事,召回控制组”在星际争霸2中失败。将其拆分为 Send "save control group, do stuff"; Sleep 10; Send "recall control group";作品。

关于autohotkey - 什么时候应该在 Autohotkey 中使用 `Sent` 超过 `SentInput`?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36345508/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com