Skip to content

Instantly share code, notes, and snippets.

@Hu-Wentao
Last active December 14, 2024 16:33
Show Gist options
  • Select an option

  • Save Hu-Wentao/1fbffc8d8aa1b0ec783632ea9c2039fa to your computer and use it in GitHub Desktop.

Select an option

Save Hu-Wentao/1fbffc8d8aa1b0ec783632ea9c2039fa to your computer and use it in GitHub Desktop.
AHK-v2 空格+HJKL脚本
; =============================================
; ----- Move -----
Space & h:: {
Send "{Blind}{Left}"
}
Space & j:: {
Send "{Blind}{Down}"
}
Space & k:: {
Send "{Blind}{Up}"
}
Space & l:: {
Send "{Blind}{Right}"
}
; ----- Delete -----
Space & d:: { ;;向右删除
Send "{Blind}{Del}"
}
; ----- Space -----
#Space:: { ; 切换语言: fix `win + space`
Send "{Blind}{LWin}{Space}"
}
*Space:: {
Send "{Blind}{Space}"
}
; ----- CapsLock -----
CapsLock:: { ; 切换中英文 (模拟RCtrl+Space)
Send "{Blind}{RCtrl down}{Space}{RCtrl up}"
}
; =============================================
; ----- 互换Ctrl Alt -----
LAlt::LCtrl
LCtrl::LAlt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment