From 240f6cf6a4a8b9d27f9b963ddce5c70323a43704 Mon Sep 17 00:00:00 2001 From: florian Date: Thu, 15 Jan 2009 12:58:44 +0000 Subject: git-svn-id: https://svn.neo-layout.org@1452 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- .../Treiber/AHK_f\303\274r_kbdneo2/1stREADME.txt" | 30 ++++ .../AHK_f\303\274r_kbdneo2/ahk_kbdneo2.ahk" | 188 +++++++++++++++++++++ .../ahk_f\303\274r_kbdneo2_Test/1stREADME.txt" | 30 ---- .../ahk_f\303\274r_kbdneo2_Test/ahk_kbdneo2.ahk" | 188 --------------------- 4 files changed, 218 insertions(+), 218 deletions(-) create mode 100644 "windows/kbdneo2/Treiber/AHK_f\303\274r_kbdneo2/1stREADME.txt" create mode 100644 "windows/kbdneo2/Treiber/AHK_f\303\274r_kbdneo2/ahk_kbdneo2.ahk" delete mode 100644 "windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/1stREADME.txt" delete mode 100644 "windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/ahk_kbdneo2.ahk" diff --git "a/windows/kbdneo2/Treiber/AHK_f\303\274r_kbdneo2/1stREADME.txt" "b/windows/kbdneo2/Treiber/AHK_f\303\274r_kbdneo2/1stREADME.txt" new file mode 100644 index 0000000..9a24e4d --- /dev/null +++ "b/windows/kbdneo2/Treiber/AHK_f\303\274r_kbdneo2/1stREADME.txt" @@ -0,0 +1,30 @@ +Das AHK-Skript »ahk_kbdneo2.ahk« schließt die letzten Lücken vom nativen Treiber (kbdneo2) + +== Erweiterungen == += Cap- und ModLock = +CapsLock durch Shift+Shift +Mod4Lock durch Mod4+Mod4 + += Funktionstasten = +»Bild auf« Mod4+4 +»Pfeil hoch« Mod4+L +»Entfernen« Mod4+C +»Einfügen« Mod4+W +»Pos 1« Mod4+U +»Pfeil links« Mod4+I +»Pfeil runter« Mod4+A +»Pfeil rechts« Mod4+E +»Ende« Mod4+O +»Bild runter« Mod4+Ä + +== noch nicht umgesetzt == += Fehlende Ebenen des Numpads = + + + + + + + + + diff --git "a/windows/kbdneo2/Treiber/AHK_f\303\274r_kbdneo2/ahk_kbdneo2.ahk" "b/windows/kbdneo2/Treiber/AHK_f\303\274r_kbdneo2/ahk_kbdneo2.ahk" new file mode 100644 index 0000000..e5e5466 --- /dev/null +++ "b/windows/kbdneo2/Treiber/AHK_f\303\274r_kbdneo2/ahk_kbdneo2.ahk" @@ -0,0 +1,188 @@ +;Inititalisierung +isShiftRPressed := 0 +isShiftLPressed := 0 +isShiftPressed := 0 +isMod2Locked := 0 +isMod3RPressed := 0 +isMod3LPressed := 0 +isMod3Pressed := 0 +isMod4RPressed := 0 +isMod4LPressed := 0 +isMod4Pressed := 0 +isMod4Locked := 0 +isMod4Active := 0 + + + +~F24::return + + +; alle Modifier werden gehookt + +~*SC136:: + if (isShiftLPressed and !isShiftRPressed) + ToggleMod2Lock() + isShiftRPressed := 1 + isShiftPressed := 1 +return + +~*SC136 up:: + isShiftRPressed := 0 + isShiftPressed := isShiftLPressed +return + +~*SC02A:: + if (isShiftRPressed and !isShiftLPressed) + ToggleMod2Lock() + isShiftLPressed := 1 + isShiftPressed := 1 +return + +~*SC02A up:: + isShiftLPressed := 0 + isShiftPressed := isShiftRPressed +return + +~*SC02B:: + isMod3RPressed := 1 + isMod3Pressed := 1 +return + +~*SC02B up:: + isMod3RPressed := 0 + isMod3Pressed := isMod3LPressed +return + +~*SC03A:: + isMod3LPressed := 1 + isMod3Pressed := 1 +return + +~*SC03A up:: + isMod3LPressed := 0 + isMod3Pressed := isMod3RPressed +return + +~*SC138:: + if (isMod4LPressed and !isMod4RPressed) + ToggleMod4Lock() + isMod4RPressed := 1 + isMod4Pressed := 1 + doMod4() +return + +~*SC138 up:: + isMod4RPressed := 0 + isMod4Pressed := isMod4LPressed + doMod4() +return + +~*SC056:: + if (isMod4RPressed and !isMod4LPressed) + ToggleMod4Lock() + isMod4LPressed := 1 + isMod4Pressed := 1 + doMod4() +return + +~*SC056 up:: + isMod4LPressed := 0 + isMod4Pressed := isMod4RPressed + doMod4() +return + + +;Welcher Modifier ist aktiv und CapsLock und Mod4Lock + +ToggleMod2Lock() { + global + if (isMod2Locked) + { + isMod2Locked := 0 + SetCapslockState off + } + else + { + isMod2Locked := 1 + SetCapslockState on + } +} + +ToggleMod4Lock() { + global + if (isMod4Locked) + isMod4Locked := 0 + else + isMod4Locked := 1 +} + +doMod4() { + global + if (isMod4Locked) + { + if (isMod4Pressed) + isMod4Active := 0 + else + isMod4Active := 1 + } + else + { + if (isMod4Pressed) + isMod4Active := 1 + else + isMod4Active := 0 + } +} + + +;Funktionstasten + +~4:: +if (isMod4Active and !isMod3Pressed) +Sendinput {Blind}{PGUP} +return + +~l:: +if (isMod4Active and !isMod3Pressed) +Sendinput {Blind}{UP} +return + +~c:: +if (isMod4Active and !isMod3Pressed) +Sendinput {Blind}{DEL} +return + +~w:: +if (isMod4Active and !isMod3Pressed) +Sendinput {Blind}{INS} +return + +~u:: +if (isMod4Active and !isMod3Pressed) +Sendinput {Blind}{HOME} +return + +~i:: +if (isMod4Active and !isMod3Pressed) +Sendinput {Blind}{LEFT} +return + +~a:: +if (isMod4Active and !isMod3Pressed) +Sendinput {Blind}{DOWN} +return + +~e:: +if (isMod4Active and !isMod3Pressed) +Sendinput {Blind}{RIGHT} +return + +~o:: +if (isMod4Active and !isMod3Pressed) +Sendinput {Blind}{END} +return + +~ä:: +if (isMod4Active and !isMod3Pressed) +Sendinput {Blind}{PGDN} +return diff --git "a/windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/1stREADME.txt" "b/windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/1stREADME.txt" deleted file mode 100644 index 8de935c..0000000 --- "a/windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/1stREADME.txt" +++ /dev/null @@ -1,30 +0,0 @@ -Das AHK-Skript »ahk_kbdneo2.ahk« schließt die letzten Lücken vom nativen Treiber (kbdneo2) - -== Erweiterungen == -= Cap- und ModLock = -CapsLock durch Shift+Shift -Mod4Lock durch Mod4+Mod4 - -= Funktionstasten = -»Bild auf« Mod4+4 -»Pfeil hoch« Mod4+L -»Entfernen« Mod4+C -»Einfügen« Mod4+W -»Pos 1« Mod4+U -»Pfeil links« Mod4+I -»Pfeil runter« Mod4+A -»Pfeil rechts« Mod4+E -»Ende« Mod4+O -»Bild runter« Mod4+Ä - -== noch nicht umgesetzt == -= Fehlende Ebenen des Numpads = - - - - - - - - - diff --git "a/windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/ahk_kbdneo2.ahk" "b/windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/ahk_kbdneo2.ahk" deleted file mode 100644 index e5e5466..0000000 --- "a/windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/ahk_kbdneo2.ahk" +++ /dev/null @@ -1,188 +0,0 @@ -;Inititalisierung -isShiftRPressed := 0 -isShiftLPressed := 0 -isShiftPressed := 0 -isMod2Locked := 0 -isMod3RPressed := 0 -isMod3LPressed := 0 -isMod3Pressed := 0 -isMod4RPressed := 0 -isMod4LPressed := 0 -isMod4Pressed := 0 -isMod4Locked := 0 -isMod4Active := 0 - - - -~F24::return - - -; alle Modifier werden gehookt - -~*SC136:: - if (isShiftLPressed and !isShiftRPressed) - ToggleMod2Lock() - isShiftRPressed := 1 - isShiftPressed := 1 -return - -~*SC136 up:: - isShiftRPressed := 0 - isShiftPressed := isShiftLPressed -return - -~*SC02A:: - if (isShiftRPressed and !isShiftLPressed) - ToggleMod2Lock() - isShiftLPressed := 1 - isShiftPressed := 1 -return - -~*SC02A up:: - isShiftLPressed := 0 - isShiftPressed := isShiftRPressed -return - -~*SC02B:: - isMod3RPressed := 1 - isMod3Pressed := 1 -return - -~*SC02B up:: - isMod3RPressed := 0 - isMod3Pressed := isMod3LPressed -return - -~*SC03A:: - isMod3LPressed := 1 - isMod3Pressed := 1 -return - -~*SC03A up:: - isMod3LPressed := 0 - isMod3Pressed := isMod3RPressed -return - -~*SC138:: - if (isMod4LPressed and !isMod4RPressed) - ToggleMod4Lock() - isMod4RPressed := 1 - isMod4Pressed := 1 - doMod4() -return - -~*SC138 up:: - isMod4RPressed := 0 - isMod4Pressed := isMod4LPressed - doMod4() -return - -~*SC056:: - if (isMod4RPressed and !isMod4LPressed) - ToggleMod4Lock() - isMod4LPressed := 1 - isMod4Pressed := 1 - doMod4() -return - -~*SC056 up:: - isMod4LPressed := 0 - isMod4Pressed := isMod4RPressed - doMod4() -return - - -;Welcher Modifier ist aktiv und CapsLock und Mod4Lock - -ToggleMod2Lock() { - global - if (isMod2Locked) - { - isMod2Locked := 0 - SetCapslockState off - } - else - { - isMod2Locked := 1 - SetCapslockState on - } -} - -ToggleMod4Lock() { - global - if (isMod4Locked) - isMod4Locked := 0 - else - isMod4Locked := 1 -} - -doMod4() { - global - if (isMod4Locked) - { - if (isMod4Pressed) - isMod4Active := 0 - else - isMod4Active := 1 - } - else - { - if (isMod4Pressed) - isMod4Active := 1 - else - isMod4Active := 0 - } -} - - -;Funktionstasten - -~4:: -if (isMod4Active and !isMod3Pressed) -Sendinput {Blind}{PGUP} -return - -~l:: -if (isMod4Active and !isMod3Pressed) -Sendinput {Blind}{UP} -return - -~c:: -if (isMod4Active and !isMod3Pressed) -Sendinput {Blind}{DEL} -return - -~w:: -if (isMod4Active and !isMod3Pressed) -Sendinput {Blind}{INS} -return - -~u:: -if (isMod4Active and !isMod3Pressed) -Sendinput {Blind}{HOME} -return - -~i:: -if (isMod4Active and !isMod3Pressed) -Sendinput {Blind}{LEFT} -return - -~a:: -if (isMod4Active and !isMod3Pressed) -Sendinput {Blind}{DOWN} -return - -~e:: -if (isMod4Active and !isMod3Pressed) -Sendinput {Blind}{RIGHT} -return - -~o:: -if (isMod4Active and !isMod3Pressed) -Sendinput {Blind}{END} -return - -~ä:: -if (isMod4Active and !isMod3Pressed) -Sendinput {Blind}{PGDN} -return -- cgit v1.2.3