我試圖禁用Alt + F4,但我想啓用它時,我按Windows鍵+ Q.到目前爲止,我有這是不工作。AutoHotKey - 如何在IF語句上使用組合鍵?
#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.
if (#q)
{
Send !{F4}
Return
} else {
!F4::Return
}
@Blauhirn,我對AHK並不瞭解太多。你能舉一個例子說清楚它是如何清潔的嗎? – user400424