Files
CapSpace/CapSpace.ahk
2026-02-08 15:25:16 +08:00

21 lines
708 B
AutoHotkey
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#Requires AutoHotkey v2.0
#SingleInstance Force
; 确保 RAlt 的穿透性(如果 Typeless 仍有冲突,保留此行)
~RAlt::return
; 优化发送速度SetKeyDelay 影响 SendEvent 的速度
; 参数含义:延时 1ms按键时长 1ms
SetKeyDelay 1, 1
; 使用 Ctrl + 方向键 切换虚拟桌面
; 加上 * 可以支持 Ctrl+Shift+Left 等组合,去掉 $ 如果你确定没有热键死循环
*^Left::SendEvent("{Blind}#^{Left}")
*^Right::SendEvent("{Blind}#^{Right}")
; 一键跳转到第一个桌面 (向上)
*^Up::SendEvent("{Blind}#^{Left 10}")
; 一键跳转到最后一个桌面 (向下)
; 10 次通常足够覆盖大部分人的桌面数量
*^Down::SendEvent("{Blind}#^{Right 10}")