
我是一名長期 Mac 用戶,最近開始在一家使用 Windows 的公司工作。我正在使用 AutoHotKey 將 Alt 鍵重新映射到 Ctrl,以模仿 Mac cmd 鍵的位置。問題是,我還想保留使用 Alt+Tab 在打開的視窗之間快速切換,即使在閱讀了 AutoHotKey 文件之後,我也不知道如何做到這一點。
重要的是,我沒有管理員權限,因此無法使用 PowerToys 等其他軟體。有誰知道 .ahk 檔案的正確結構來實現這一點?
答案1
嘗試這個
; remap the Alt key to Ctrl
; and the Ctrl key to Alt:
Alt::Ctrl
Ctrl::Alt
; retain the use of Alt+Tab:
^Tab:: ; ^ is the symbol for Ctrl
Send {Alt down}{Tab}
KeyWait, Ctrl ; wait for Ctrl to be released
Send {Ctrl up}{Alt up}
return