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 (将#修改为@)