From 0e905cce507242017d090b1e4b56831399277586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 15 Dec 2021 01:47:20 +0100 Subject: keyboard: Update ANSI layout --- tt.keyboard.ahk | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/tt.keyboard.ahk b/tt.keyboard.ahk index 82d0469..599f328 100644 --- a/tt.keyboard.ahk +++ b/tt.keyboard.ahk @@ -7,7 +7,7 @@ >!s::SendInput, {ASC 0223} ; ß <^>!s::SendInput, {ASC 0223} -#If Layout() = layouts.sv && GetKeyState("NumLock", "T") ; see tt.layout.ahk +#If Layout() = layouts.sv && GetKeyState("NumLock", "T") && !WinActive("ahk_exe VirtualBoxVM.exe") +SC00D::SendInput, ``{Space} +SC01B::SendInput, {^}{Space} <^>!SC01B::SendInput, ~{Space} @@ -27,9 +27,26 @@ ;; ANSI keyboard mappings ----------------------------------------------------- -/* -#If Layout() = layouts.us ; see tt.layout.ahk +#If Layout() = layouts.us && !WinActive("ahk_exe VirtualBoxVM.exe") ; see tt.layout.ahk + +>!a::SendInput, a +>!e::SendInput, e +>!+a::SendInput, A +>!+e::SendInput, E + +:z*?:aa::å +:z*?:ae::ä +:z*?:oe::ö +:z*?:AA::Å +:z*?:AE::Ä +:z*?:OE::Ö + +:z*?:a``::à +:z*?:e``::é +:z*?:A``::À +:z*?:E``::É +/* SC01A::å SC01B::ä SC02B::ö @@ -52,9 +69,9 @@ SC02B:: >!+e::SendInput, {ASC 0201} ; É >!4::SendInput, {ASC 0164} ; ¤ >!+4::SendInput, {ASC 0128} ; € +*/ #If -*/ ;; Acer 6312-K mappings ------------------------------------------------------- @@ -104,6 +121,14 @@ Modifiers() { #i Up::SendInput, {PgUp up} *#o::SendInput, % Modifiers() "{End down}" #o Up::SendInput, {End up} + +#n:: +SendInput, {NumLock} +if (!GetKeyState("NumLock", "T")) + ToolTip, NumLock disabled +Sleep, 500 +ToolTip +return */ ;; -> init -- cgit v1.2.3