热键明显滞后,如何减少延迟?

Noticeable lag in hotkey, how can i reduce the delay?

我正在尝试将热键 Win + E 更改为 Win + Space 并且我使用了下面的代码

代码:

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey 
releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and 
reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#space:: Run explorer.exe shell:MyComputerFolder

效果很好,但我发现有延迟。当我使用 Win + E 它会立即打开,但是当我使用 Win + Space 时会有 1 秒的延迟。

有没有办法消除这种延迟?

在 AutoHotKey 论坛上找到了解决方案。如果有人对这里感兴趣,那就是

用户名回答:TheDewd

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.

; #Warn ; Enable warnings to assist with detecting common errors.

SendMode Input ; Recommended for new scripts due to its superior speed and reliability.

SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

#space::#e ;this line solves the delay. Makes it Just like using Win + E

#e:: ;if you want to remap Win + E

MsgBox, Test

return

Reference,以防万一,但所有答案都在上面的代码中。