[英]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; 為提高性能並與將來的AutoHotkey版本兼容而推薦。
; #Warn; 啟用警告以幫助檢測常見錯誤。
SendMode輸入; 由於其卓越的速度和可靠性,因此推薦用於新腳本。
SetWorkingDir%A_ScriptDir%; 確保起始目錄一致。
#space ::#e;此行解決了延遲問題。 就像使用Win + E一樣
#e ::;如果要重新映射Win + E
MsgBox,測試
返回
參考 ,以防萬一,但是所有的答案都在上面的代碼中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.