如何解决AHK 保持到 ADS 而不是切换
这是我目前的代码:
#InstallMouseHook
; #Warn ; Enable warnings to assist with detecting common errors.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#IfWinActive Gigantic ;Detects if Gigantic is running.
clickDelay := 250
~*RButton::rClickTime := A_TickCount ; Sends RButton Down (Scopes in) and sets rClickTime
return
~*RButton Up:: ; Sends RButton Up
if (A_TickCount - rClickTime >= (clickDelay)) ; Checks if Current Time - rClickTime is greater than clickDelay
{
Click,Right ; Sends RButton Down (Scopes Out)
}
else
{
Sleep,(ClickDelay - 50) ; Delays input for t = clickDelay - 50
Click,Right ; Sends RButton Down (Scopes Out)
}
return
$*Alt::
Click,Right
return
; \::ExitApp ;Escape key will exit... place this at the bottom of the script
除了我双击 RButton 时,大多数情况下一切正常。预期的行为是,向下放大 -> 释放时缩小 -> 向下放大 -> 释放时缩小。相反,我得到放大向下 -> 释放时缩小 -> 向下放大,然后我被困在放大中。理想情况下,我希望它在释放时缩小,但如果它只是完全忽略双击,那么这也不会发生。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。