Skip to content

Instantly share code, notes, and snippets.

@winstonleedev
Last active April 22, 2023 06:02
Show Gist options
  • Save winstonleedev/bee05bb3d0109ac83011857d9a230f55 to your computer and use it in GitHub Desktop.
Save winstonleedev/bee05bb3d0109ac83011857d9a230f55 to your computer and use it in GitHub Desktop.
Dvorak-QWERTY with Korean support, pause when Korean IME is detected or Scroll lock is on. Support CTRL + SHIFT and ALT+SHIFT. To use enable Dvorak layout and run this script
;Dvorak with Korean support, pause when Korean IME is detected or Scroll lock is on
Loop {
If GetKeyState("ScrollLock", "T")
or (DllCall("GetKeyboardLayout", Int,DllCall("GetWindowThreadProcessId", int,WinActive("A"), Int,0)) == 68289554) {
Suspend On
} else {
Suspend Off
}
Sleep, 50
}
; =Dvorak Hot Key Fixes ( Autohotkey )
;--------------------------------------
;----------------- CTRL ALT KEY
^![::Send ^!-
^!]::Send ^!=
^!'::Send ^!q
^!,::Send ^!w
^!.::Send ^!e
^!p::Send ^!r
^!y::Send ^!t
^!f::Send ^!y
^!g::Send ^!u
^!c::Send ^!i
^!r::Send ^!o
^!l::Send ^!p
^!/::Send ^![
^!=::Send ^!]
^!o::Send ^!s
^!e::Send ^!d
^!u::Send ^!f
^!i::Send ^!g
^!d::Send ^!h
^!h::Send ^!j
^!t::Send ^!k
^!n::Send ^!l
^!s::Send ^!`;
^!-::Send ^!'
^!`;::Send ^!z
^!q::Send ^!x
^!j::Send ^!c
^!k::Send ^!v
^!x::Send ^!b
^!b::Send ^!n
^!m::Send ^!m
^!w::Send ^!,
^!v::Send ^!.
^!z::Send ^!/
;----------------- CTRL SHIFT KEY
^+[::Send ^+-
^+]::Send ^+=
^+'::Send ^+q
^+,::Send ^+w
^+.::Send ^+e
^+p::Send ^+r
^+y::Send ^+t
^+f::Send ^+y
^+g::Send ^+u
^+c::Send ^+i
^+r::Send ^+o
^+l::Send ^+p
^+/::Send ^+[
^+=::Send ^+]
^+o::Send ^+s
^+e::Send ^+d
^+u::Send ^+f
^+i::Send ^+g
^+d::Send ^+h
^+h::Send ^+j
^+t::Send ^+k
^+n::Send ^+l
^+s::Send ^+`;
^+-::Send ^+'
^+`;::Send ^+z
^+q::Send ^+x
^+j::Send ^+c
^+k::Send ^+v
^+x::Send ^+b
^+b::Send ^+n
^+m::Send ^+m
^+w::Send ^+,
^+v::Send ^+.
^+z::Send ^+/
;----------------- CTRL KEY
*^[::Send ^-
*^]::Send ^=
*^'::Send ^q
*^,::Send ^w
*^.::Send ^e
*^p::Send ^r
*^y::Send ^t
*^f::Send ^y
*^g::Send ^u
*^c::Send ^i
*^r::Send ^o
*^l::Send ^p
*^/::Send ^[
*^=::Send ^]
*^o::Send ^s
*^e::Send ^d
*^u::Send ^f
*^i::Send ^g
*^d::Send ^h
*^h::Send ^j
*^t::Send ^k
*^n::Send ^l
*^s::Send ^`;
*^-::Send ^'
*^`;::Send ^z
*^q::Send ^x
*^j::Send ^c
*^k::Send ^v
*^x::Send ^b
*^b::Send ^n
*^m::Send ^m
*^w::Send ^,
*^v::Send ^.
*^z::Send ^/
;----------------- ALT SHIFT KEY
!+[::Send !+-
!+]::Send !+=
!+'::Send !+q
!+,::Send !+w
!+.::Send !+e
!+p::Send !+r
!+y::Send !+t
!+f::Send !+y
!+g::Send !+u
!+c::Send !+i
!+r::Send !+o
!+l::Send !+p
!+/::Send !+[
!+=::Send !+]
!+o::Send !+s
!+e::Send !+d
!+u::Send !+f
!+i::Send !+g
!+d::Send !+h
!+h::Send !+j
!+t::Send !+k
!+n::Send !+l
!+s::Send !+`;
!+-::Send !+'
!+`;::Send +!z
!+q::Send !+x
!+j::Send !+c
!+k::Send !+v
!+x::Send !+b
!+b::Send !+n
!+m::Send !+m
!+w::Send !+,
!+v::Send !+.
!+z::Send !+/
;----------------- ALT KEY
*![::Send !-
*!]::Send !=
*!'::Send !q
*!,::Send !w
*!.::Send !e
*!p::Send !r
*!y::Send !t
*!f::Send !y
*!g::Send !u
*!c::Send !i
*!r::Send !o
*!l::Send !p
*!/::Send ![
*!=::Send !]
*!o::Send !s
*!e::Send !d
*!u::Send !f
*!i::Send !g
*!d::Send !h
*!h::Send !j
*!t::Send !k
*!n::Send !l
*!s::Send !`;
*!-::Send !'
*!`;::Send !z
*!q::Send !x
*!j::Send !c
*!k::Send !v
*!x::Send !b
*!b::Send !n
*!m::Send !m
*!w::Send !,
*!v::Send !.
*!z::Send !/
;----------------- WINDOWS KEY
*#[::Send #-
*#]::Send #=
*#'::Send #q
*#,::Send #w
*#.::Send #e
*#p::Send #r
*#y::Send #t
*#f::Send #y
*#g::Send #u
*#c::Send #i
*#r::Send #o
*#l::Send #p
*#/::Send #[
*#=::Send #]
*#o::Send #s
*#e::Send #d
*#u::Send #f
*#i::Send #g
*#d::Send #h
*#h::Send #j
*#t::Send #k
*#n::Send #l
*#s::Send #`;
*#-::Send #'
*#`;::Send #z
*#q::Send #x
*#j::Send #c
*#k::Send #v
*#x::Send #b
*#b::Send #n
*#m::Send #m
*#w::Send #,
*#v::Send #.
*#z::Send #/
^#j::Send ^#c
;END Dvorak Hot Key Fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment