From 8bb00dedabd88b8e2d69b96fb3d9eacadd4122f0 Mon Sep 17 00:00:00 2001 From: q3aql Date: Wed, 19 Aug 2020 20:17:49 +0200 Subject: [PATCH] AutoHotKey scripts --- src/mspeed-layer-ck6x-DE.ahk | 93 ++++++++++++++++++++++++++++ src/mspeed-layer-ck6x-ES.ahk | 93 ++++++++++++++++++++++++++++ src/mspeed-layer-ck6x-FR.ahk | 93 ++++++++++++++++++++++++++++ src/mspeed-layer-ck6x-IT.ahk | 93 ++++++++++++++++++++++++++++ src/mspeed-layer-ck6x-US-Symbols.ahk | 48 ++++++++++++++ src/mspeed-layer-ck6x-US.ahk | 48 ++++++++++++++ 6 files changed, 468 insertions(+) create mode 100644 src/mspeed-layer-ck6x-DE.ahk create mode 100644 src/mspeed-layer-ck6x-ES.ahk create mode 100644 src/mspeed-layer-ck6x-FR.ahk create mode 100644 src/mspeed-layer-ck6x-IT.ahk create mode 100644 src/mspeed-layer-ck6x-US-Symbols.ahk create mode 100644 src/mspeed-layer-ck6x-US.ahk diff --git a/src/mspeed-layer-ck6x-DE.ahk b/src/mspeed-layer-ck6x-DE.ahk new file mode 100644 index 0000000..7a9f6c6 --- /dev/null +++ b/src/mspeed-layer-ck6x-DE.ahk @@ -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 \ No newline at end of file diff --git a/src/mspeed-layer-ck6x-ES.ahk b/src/mspeed-layer-ck6x-ES.ahk new file mode 100644 index 0000000..39cf88b --- /dev/null +++ b/src/mspeed-layer-ck6x-ES.ahk @@ -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 \ No newline at end of file diff --git a/src/mspeed-layer-ck6x-FR.ahk b/src/mspeed-layer-ck6x-FR.ahk new file mode 100644 index 0000000..167dfb9 --- /dev/null +++ b/src/mspeed-layer-ck6x-FR.ahk @@ -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 \ No newline at end of file diff --git a/src/mspeed-layer-ck6x-IT.ahk b/src/mspeed-layer-ck6x-IT.ahk new file mode 100644 index 0000000..5498d1a --- /dev/null +++ b/src/mspeed-layer-ck6x-IT.ahk @@ -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 \ No newline at end of file diff --git a/src/mspeed-layer-ck6x-US-Symbols.ahk b/src/mspeed-layer-ck6x-US-Symbols.ahk new file mode 100644 index 0000000..38c483a --- /dev/null +++ b/src/mspeed-layer-ck6x-US-Symbols.ahk @@ -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 \ No newline at end of file diff --git a/src/mspeed-layer-ck6x-US.ahk b/src/mspeed-layer-ck6x-US.ahk new file mode 100644 index 0000000..90e51f2 --- /dev/null +++ b/src/mspeed-layer-ck6x-US.ahk @@ -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 \ No newline at end of file