Skip to content

Instantly share code, notes, and snippets.

@to-osaki
Last active October 2, 2024 04:44
Show Gist options
  • Save to-osaki/5974a4bb39df17c58d7de716369f13f4 to your computer and use it in GitHub Desktop.
Save to-osaki/5974a4bb39df17c58d7de716369f13f4 to your computer and use it in GitHub Desktop.
#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.
; http://ahkwiki.net/KeyList
; ! = alt
; ^ = ctrl
; + = shift
; # = win
#q::Send,!{F4} ; win+q = close window
!q::Send,^{F4} ; alt+q = close tab
; henkan -> ctrl + space
vk1C::Send,^{Space}
; muhenkan -> Enter
vk1D::Enter
; kana -> zen/han
vkF2::vkF3
; capslock -> Tab
vkf0::Tab
; muhenkan + ... -> symbols
vk1D & @::Send,"
vk1D & [::Send,+8
vk1D & ]::Send,+9
vk1D & vkBA::Send,+-
vk1D & vkBB::Send,{End};
vk1D & ,::Send,+&
vk1D & .::Send,+|
vk1D & /::Send,+1
vk1D & vkE2::Send,//{Space}
; muhenkan + l(ambda) -> =>
vk1D & l::Send,=>
vk1D & m::Send,_
vk1D & i::Send,= new(){Left}
vk1D & n::Send,= null
vk1D & o::Send,(){Left}
vk1D & p::Send,public{Space}
; muhenkan + arrow -> Page
vk1D & Up::PgUp
vk1D & Down::PgDn
vk1D & Left::Home
vk1D & Right::End
; muhenkan + shift = undo
vk1D & Shift::Send,^z
; muhenkan + z/x = undo/redo
vk1D & z::^z
vk1D & x::^+z
; muhenkan + alpha = Function
vk1D & 1::F1
vk1D & 2::F2
vk1D & 3::F3
vk1D & 4::F4
vk1D & 5::F5
vk1D & 6::F6
vk1D & 7::F7
vk1D & 8::F8
vk1D & 9::F9
vk1D & 0::F10
vk1D & -::F11
vk1D & ^::F12
; muhenkan + WSAD -> arrow
vk1D & w::Up
vk1D & s::Down
vk1D & a::Left
vk1D & d::Right
vk1D & q::Home
vk1D & e::End
; muhenkan + r -> Esc
vk1D & r::Esc
vk1D & f::BS
vk1D & j::Enter
vk1C & j::Enter
; muhenkan + c/v -> copy/paste
vk1D & c::^c
vk1D & v::^v
; henkan + X ->
vk1C & vkE2::^v
vk1C & /::^c
vk1C & ,::^z
vk1C & .::^+z
; henkan + OLK; -> mouse
; http://ahkwiki.net/MouseMove
vk1C & i::MouseClick, left
vk1C & p::MouseClick, right
vk1C & o::MouseMove, 0, -25, 50, R
vk1C & l::MouseMove, 0, 25, 50, R
vk1C & k::MouseMove, -30, 0, 50, R
vk1C & vkBB::MouseMove, 30, 0, 50, R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment