AutoHotKey scripts

This commit is contained in:
q3aql 2020-08-19 20:17:49 +02:00
parent 9f8080615f
commit 8bb00dedab
6 changed files with 468 additions and 0 deletions

View File

@ -0,0 +1,93 @@
;
; ########################################################
; # mspeed-layer-ck6x - MotoSpeed Layer for CK61 & CK62 #
; # #
; # Author: q3aql #
; # Contact: q3aql@protonmail.ch #
; # License: GPL v2.0 #
; ########################################################
; Version v1.0
;
; Mapper to use arrows, F1-F12 and other keys using CapsLock
; as FN function.
;
; Configuration to use ISO German Layout (QWERTZ)
;
SetCapsLockState, AlwaysOff
CapsLock & w::Up
CapsLock & s::Down
CapsLock & a::Left
CapsLock & d::Right
CapsLock & k::Home
CapsLock & l::End
CapsLock & m::PgUp
CapsLock & n::PgDn
CapsLock & Esc::
if GetKeyState("Shift")
Send, {^}
else
Send, º
return
CapsLock & 1::F1
CapsLock & 2::F2
CapsLock & 3::F3
CapsLock & 4::F4
CapsLock & 5::F5
CapsLock & 6::F6
CapsLock & 7::F7
CapsLock & 8::F8
CapsLock & 9::F9
CapsLock & 0::F10
CapsLock & i::F11
CapsLock & o::F12
CapsLock & Backspace::Delete
CapsLock & h::Send {vkAFsc130} ;Volume up
CapsLock & g::Send {vkAEsc12e} ;Volume down
CapsLock & f::Send {vkADsc120} ;Volume mute
CapsLock & p:: Send {PrintScreen}
<+CapsLock::CapsLock
;
; Add extra keys:
!y::
Send, <
return
;
!x::
Send, >
return
;
<^>!+y::
Send, <
return
;
<^>!+x::
Send, >
return
;
<^>!y::
Send, <
return
;
<^>!x::
Send, >
return
;
<^>!'::
Send, \
return
;
;<^>!¡::
;Send, ~
;return
;
<^>!-::
Send, \
return
;
<^>!+::
Send, ~
return
;
<^>!*Escape::
Send, \
return

View File

@ -0,0 +1,93 @@
;
; ########################################################
; # mspeed-layer-ck6x - MotoSpeed Layer for CK61 & CK62 #
; # #
; # Author: q3aql #
; # Contact: q3aql@protonmail.ch #
; # License: GPL v2.0 #
; ########################################################
; Version v1.0
;
; Mapper to use arrows, F1-F12 and other keys using CapsLock
; as FN function.
;
; Configuration to use ISO Spanish Layout (QWERTY)
;
SetCapsLockState, AlwaysOff
CapsLock & w::Up
CapsLock & s::Down
CapsLock & a::Left
CapsLock & d::Right
CapsLock & k::Home
CapsLock & l::End
CapsLock & m::PgUp
CapsLock & n::PgDn
CapsLock & Esc::
if GetKeyState("Shift")
Send, ª
else
Send, º
return
CapsLock & 1::F1
CapsLock & 2::F2
CapsLock & 3::F3
CapsLock & 4::F4
CapsLock & 5::F5
CapsLock & 6::F6
CapsLock & 7::F7
CapsLock & 8::F8
CapsLock & 9::F9
CapsLock & 0::F10
CapsLock & i::F11
CapsLock & o::F12
CapsLock & Backspace::Delete
CapsLock & h::Send {vkAFsc130} ;Volume up
CapsLock & g::Send {vkAEsc12e} ;Volume down
CapsLock & f::Send {vkADsc120} ;Volume mute
CapsLock & p:: Send {PrintScreen}
<+CapsLock::CapsLock
;
; Add extra keys:
!z::
Send, <
return
;
!x::
Send, >
return
;
<^>!+z::
Send, <
return
;
<^>!+x::
Send, >
return
;
<^>!z::
Send, <
return
;
<^>!x::
Send, >
return
;
<^>!'::
Send, \
return
;
;<^>!¡::
;Send, ~
;return
;
<^>!-::
Send, \
return
;
<^>!+::
Send, ~
return
;
<^>!*Escape::
Send, \
return

View File

@ -0,0 +1,93 @@
;
; ########################################################
; # mspeed-layer-ck6x - MotoSpeed Layer for CK61 & CK62 #
; # #
; # Author: q3aql #
; # Contact: q3aql@protonmail.ch #
; # License: GPL v2.0 #
; ########################################################
; Version v1.0
;
; Mapper to use arrows, F1-F12 and other keys using CapsLock
; as FN function.
;
; Configuration to use ISO French Layout (AZERTY)
;
SetCapsLockState, AlwaysOff
CapsLock & z::Up
CapsLock & s::Down
CapsLock & q::Left
CapsLock & d::Right
CapsLock & k::Home
CapsLock & l::End
CapsLock & n::PgUp
CapsLock & b::PgDn
CapsLock & Esc::
if GetKeyState("Shift")
Send {@}
else
Send {#}
return
CapsLock & 1::F1
CapsLock & 2::F2
CapsLock & 3::F3
CapsLock & 4::F4
CapsLock & 5::F5
CapsLock & 6::F6
CapsLock & 7::F7
CapsLock & 8::F8
CapsLock & 9::F9
CapsLock & 0::F10
CapsLock & i::F11
CapsLock & o::F12
CapsLock & Backspace::Delete
CapsLock & h::Send {vkAFsc130} ;Volume up
CapsLock & g::Send {vkAEsc12e} ;Volume down
CapsLock & f::Send {vkADsc120} ;Volume mute
CapsLock & p:: Send {PrintScreen}
<+CapsLock::CapsLock
;
; Add extra keys:
!w::
Send, <
return
;
!x::
Send, >
return
;
<^>!+w::
Send, <
return
;
<^>!+x::
Send, >
return
;
<^>!w::
Send, <
return
;
<^>!x::
Send, >
return
;
<^>!'::
Send, \
return
;
;<^>!¡::
;Send, ~
;return
;
<^>!-::
Send, \
return
;
<^>!+::
Send, ~
return
;
<^>!*Escape::
Send, \
return

View File

@ -0,0 +1,93 @@
;
; ########################################################
; # mspeed-layer-ck6x - MotoSpeed Layer for CK61 & CK62 #
; # #
; # Author: q3aql #
; # Contact: q3aql@protonmail.ch #
; # License: GPL v2.0 #
; ########################################################
; Version v1.0
;
; Mapper to use arrows, F1-F12 and other keys using CapsLock
; as FN function.
;
; Configuration to use ISO Italian Layout (QWERTY)
;
SetCapsLockState, AlwaysOff
CapsLock & w::Up
CapsLock & s::Down
CapsLock & a::Left
CapsLock & d::Right
CapsLock & k::Home
CapsLock & l::End
CapsLock & m::PgUp
CapsLock & n::PgDn
CapsLock & Esc::
if GetKeyState("Shift")
Send {\}
else
Send {|}
return
CapsLock & 1::F1
CapsLock & 2::F2
CapsLock & 3::F3
CapsLock & 4::F4
CapsLock & 5::F5
CapsLock & 6::F6
CapsLock & 7::F7
CapsLock & 8::F8
CapsLock & 9::F9
CapsLock & 0::F10
CapsLock & i::F11
CapsLock & o::F12
CapsLock & Backspace::Delete
CapsLock & h::Send {vkAFsc130} ;Volume up
CapsLock & g::Send {vkAEsc12e} ;Volume down
CapsLock & f::Send {vkADsc120} ;Volume mute
CapsLock & p:: Send {PrintScreen}
<+CapsLock::CapsLock
;
; Add extra keys:
!z::
Send, <
return
;
!x::
Send, >
return
;
<^>!+z::
Send, <
return
;
<^>!+x::
Send, >
return
;
<^>!z::
Send, <
return
;
<^>!x::
Send, >
return
;
<^>!'::
Send, \
return
;
;<^>!¡::
;Send, ~
;return
;
<^>!-::
Send, \
return
;
<^>!+::
Send, ~
return
;
<^>!*Escape::
Send, \
return

View File

@ -0,0 +1,48 @@
;
; ########################################################
; # mspeed-layer-ck6x - MotoSpeed Layer for CK61 & CK62 #
; # #
; # Author: q3aql #
; # Contact: q3aql@protonmail.ch #
; # License: GPL v2.0 #
; ########################################################
; Version v1.0
;
; Mapper to use arrows, F1-F12 and other keys using CapsLock
; as FN function.
;
; Configuration to use ANSI US Layout (with keyboard symbols).
;
SetCapsLockState, AlwaysOff
CapsLock & /::Up
CapsLock & SC15D::Down
CapsLock & SC138::Left
CapsLock & SC11D::Right
CapsLock & l::Home
CapsLock & .::End
CapsLock & ,::Delete
CapsLock & `;::PgUp
CapsLock & '::PgDn
CapsLock & Esc::
if GetKeyState("Shift")
Send {~}
else
Send {``}
return
CapsLock & 1::F1
CapsLock & 2::F2
CapsLock & 3::F3
CapsLock & 4::F4
CapsLock & 5::F5
CapsLock & 6::F6
CapsLock & 7::F7
CapsLock & 8::F8
CapsLock & 9::F9
CapsLock & 0::F10
CapsLock & Backspace::Delete
CapsLock & c::Send {vkAFsc130} ;Volume up
CapsLock & x::Send {vkAEsc12e} ;Volume down
CapsLock & z::Send {vkADsc120} ;Volume mute
CapsLock & [:: Send {PrintScreen}
CapsLock & ]::Send {Pause}
<+CapsLock::CapsLock

View File

@ -0,0 +1,48 @@
;
; ########################################################
; # mspeed-layer-ck6x - MotoSpeed Layer for CK61 & CK62 #
; # #
; # Author: q3aql #
; # Contact: q3aql@protonmail.ch #
; # License: GPL v2.0 #
; ########################################################
; Version v1.0
;
; Mapper to use arrows, F1-F12 and other keys using CapsLock
; as FN function.
;
; Configuration to use ANSI US Layout (Alternative)
;
SetCapsLockState, AlwaysOff
CapsLock & w::Up
CapsLock & s::Down
CapsLock & a::Left
CapsLock & d::Right
CapsLock & k::Home
CapsLock & l::End
CapsLock & m::PgUp
CapsLock & n::PgDn
CapsLock & Esc::
if GetKeyState("Shift")
Send {~}
else
Send {``}
return
CapsLock & 1::F1
CapsLock & 2::F2
CapsLock & 3::F3
CapsLock & 4::F4
CapsLock & 5::F5
CapsLock & 6::F6
CapsLock & 7::F7
CapsLock & 8::F8
CapsLock & 9::F9
CapsLock & 0::F10
CapsLock & i::F11
CapsLock & o::F12
CapsLock & Backspace::Delete
CapsLock & h::Send {vkAFsc130} ;Volume up
CapsLock & g::Send {vkAEsc12e} ;Volume down
CapsLock & f::Send {vkADsc120} ;Volume mute
CapsLock & p:: Send {PrintScreen}
<+CapsLock::CapsLock