Skip to content

Instantly share code, notes, and snippets.

@0mg
Last active October 18, 2018 13:30
Show Gist options
  • Save 0mg/8b64f127b0ebd6aa0afe86b3939f033c to your computer and use it in GitHub Desktop.
Save 0mg/8b64f127b0ebd6aa0afe86b3939f033c to your computer and use it in GitHub Desktop.
AutoHotkey
vk1Csc079 & h::Send {blind}{Left}
vk1Csc079 & j::Send {blind}{Down}
vk1Csc079 & k::Send {blind}{Up}
vk1Csc079 & l::Send {blind}{Right}
vk1Csc079 & u::Send {blind}{Home}
vk1Csc079 & i::Send {blind}{End}
vk1Csc079 & o::Send {blind}{PgDn}
vk1Csc079 & p::Send {blind}{PgUp}
vk1Csc079 & 1::Send {blind}{F1}
vk1Csc079 & 2::Send {blind}{F2}
vk1Csc079 & 3::Send {blind}{F3}
vk1Csc079 & 4::Send {blind}{F4}
vk1Csc079 & 5::Send {blind}{F5}
vk1Csc079 & 6::Send {blind}{F6}
vk1Csc079 & 7::Send {blind}{F7}
vk1Csc079 & 8::Send {blind}{F8}
vk1Csc079 & 9::Send {blind}{F9}
vk1Csc079 & 0::Send {blind}{F10}
vk1Csc079 & -::Send {blind}{F11}
vk1Csc079 & ^::Send {blind}{F12}
vk1Csc079 & a::Send {blind}^a
vk1Csc079 & s::Send {blind}^s
vk1Csc079 & f::Send {blind}^f
vk1Csc079 & w::Send {blind}^w
vk1Csc079 & r::Send {blind}^r
vk1Csc079 & t::Send {blind}^t
vk1Csc079 & y::Send {blind}^y
vk1Csc079 & z::Send {blind}^z
vk1Csc079 & x::Send {blind}^x
vk1Csc079 & c::Send {blind}^c
vk1Csc079 & v::Send {blind}^v
vk1Csc079 & Backspace::Send {blind}^{Backspace}
vk1Csc079 & n::Send {blind}{Esc}
vk1Csc079 & m::Send {blind}{Delete}
vk1Csc079 & ,::Send {blind}{Enter}
vk1Csc079 & .::Send {blind}{Tab}
vk1Csc079::return ;Convert
vkF0sc070::return ;Kana up
vkF2sc070::return ;Kana down
;Mouse
MButton::Send {Esc}
XButton1::Send {WheelLeft}
XButton2::Send {WheelRight}
SendKey(s) {
If GetKeyState("Shift", "P") {
Send,+{%s%}
} else If GetKeyState("RCtrl", "P") {
Send,^{%s%}
} else If GetKeyState("Alt", "P") {
Send,!{%s%}
} else {
Send,{%s%}
}
}
LCtrl & h::SendKey("Left")
LCtrl & j::SendKey("Down")
LCtrl & k::SendKey("Up")
LCtrl & l::SendKey("Right")
LCtrl & o::SendKey("Home")
LCtrl & $::SendKey("End")
LCtrl & f::SendKey("PgDn")
LCtrl & b::SendKey("PgUp")
sc03A::Up
ScrollLock::Up
vk1Csc079::Media_Play_Pause
vkF2sc070::Media_Next
SendKey(s) {
If GetKeyState("Shift", "P") {
Send,+{%s%}
} else If GetKeyState("Ctrl", "P") {
Send,^{%s%}
} else If GetKeyState("Alt", "P") {
Send,!{%s%}
} else {
Send,{%s%}
}
}
vk1Csc079 & h::SendKey("Left")
vk1Csc079 & j::SendKey("Down")
vk1Csc079 & k::SendKey("Up")
vk1Csc079 & l::SendKey("Right")
vk1Csc079 & u::SendKey("Home")
vk1Csc079 & i::SendKey("End")
vk1Csc079 & o::SendKey("PgDn")
vk1Csc079 & p::SendKey("PgUp")
vk1Csc079 & 1::SendKey("F1")
vk1Csc079 & 2::SendKey("F2")
vk1Csc079 & 3::SendKey("F3")
vk1Csc079 & 4::SendKey("F4")
vk1Csc079 & 5::SendKey("F5")
vk1Csc079 & 6::SendKey("F6")
vk1Csc079 & 7::SendKey("F7")
vk1Csc079 & 8::SendKey("F8")
vk1Csc079 & 9::SendKey("F9")
vk1Csc079 & 0::SendKey("F10")
vk1Csc079 & -::SendKey("F11")
vk1Csc079 & ^::SendKey("F12")
vk1Csc079 & a::Send,^a
vk1Csc079 & s::Send,^s
vk1Csc079 & f::Send,^f
vk1Csc079 & t::Send,^t
vk1Csc079 & w::Send,^w
vk1Csc079 & r::Send,^r
vk1Csc079 & z::Send,^z
vk1Csc079 & y::Send,^y
vk1Csc079 & x::Send,^x
vk1Csc079 & c::Send,^c
vk1Csc079 & v::Send,^v
vk1Csc079 & Backspace::Send,^{Backspace}
vk1Csc079::
vkF0sc070::
vkF2sc070::
RAlt::
;RAlt & h::MouseMove, -10, 0, 0, R
;RAlt & j::MouseMove, 0, 10, 0, R
;RAlt & k::MouseMove, 0, -10, 0, R
;RAlt & l::MouseMove, 10, 0, 0, R
;RAlt & u::Click
;RAlt & i::Click right
SendKey(s) {
If GetKeyState("Shift", "P") {
Send,+{%s%}
} else If GetKeyState("RCtrl", "P") {
Send,^{%s%}
} else If GetKeyState("Alt", "P") {
Send,!{%s%}
} else {
Send,{%s%}
}
}
LCtrl & h::SendKey("Left")
LCtrl & j::SendKey("Down")
LCtrl & k::SendKey("Up")
LCtrl & l::SendKey("Right")
LCtrl & o::SendKey("Home")
LCtrl & $::SendKey("End")
LCtrl & f::SendKey("PgDn")
LCtrl & b::SendKey("PgUp")
LCtrl & 1::SendKey("a")
LCtrl & F2::SendKey("2")
LCtrl & 3::SendKey("f")
LCtrl & 4::SendKey("g")
LCtrl & 5::SendKey("j")
LCtrl & 6::SendKey("l")
LCtrl & 7::SendKey("]")
LCtrl & 8::SendKey("/")
sc03A::Up
ScrollLock::Up
vk1Csc079::Media_Play_Pause
vkF2sc070::Media_Next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment