Windows 10 Windows中的AHK跨脚本即使在指示释放时也会按住按钮

Windows 10 Windows中的AHK跨脚本即使在指示释放时也会按住按钮,windows-10,autohotkey,Windows 10,Autohotkey,我试图触发另一个脚本中的热键程序(#u::),它似乎有错误行为 脚本#1: 试图触发#u::热键的脚本#2: #SingleInstance #NoEnv SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. #MenuMaskKey vk07 SendLevel, 10 Send, #{u} ; This successfully triggers the hotkey but now it holds

我试图触发另一个脚本中的热键程序(#u::),它似乎有错误行为

脚本#1:

试图触发#u::热键的脚本#2:

#SingleInstance
#NoEnv
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#MenuMaskKey vk07
SendLevel, 10
Send, #{u} ; This successfully triggers the hotkey but now it holds down the # button

sleep, 1000
Send, {RWin Up} ;Here I am trying to release it but it still doesn't let it go
#SingleInstance
#NoEnv
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#MenuMaskKey vk07

SendLevel 1
SendInput, {LWin down}u{LWin Up} 
If GetKeyState("LWin")
    Send {LWin Up} 
If GetKeyState("RWin")
    Send {RWin Up} 
顺便说一句,所有其他修改器都会出现这种情况,如shift、alt和control

我使用的是最新版本(v1.1.26.01)。

试试这个:

脚本#1:

试图触发#u::热键的脚本#2:

#SingleInstance
#NoEnv
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#MenuMaskKey vk07
SendLevel, 10
Send, #{u} ; This successfully triggers the hotkey but now it holds down the # button

sleep, 1000
Send, {RWin Up} ;Here I am trying to release it but it still doesn't let it go
#SingleInstance
#NoEnv
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#MenuMaskKey vk07

SendLevel 1
SendInput, {LWin down}u{LWin Up} 
If GetKeyState("LWin")
    Send {LWin Up} 
If GetKeyState("RWin")
    Send {RWin Up} 

SendInput,{LWin Down}u{LWin Up}成功了!其余的都是多余的。