diff options
author | John Ankarström <john@ankarstrom.se> | 2021-12-15 01:47:20 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-12-15 01:47:20 +0100 |
commit | 0e905cce507242017d090b1e4b56831399277586 (patch) | |
tree | ddea6b26d74f54973ab1820bd6ae3559871c9acf | |
parent | 44774d4426d7b5e675a3b2976ac232b58d4970fa (diff) | |
download | ahk-0e905cce507242017d090b1e4b56831399277586.tar.gz |
keyboard: Update ANSI layout
-rw-r--r-- | tt.keyboard.ahk | 33 |
1 files 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 |