From 5f7dfb75f40aada8d4a193a850833f2169e735c1 Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 20 Jun 2008 23:10:01 +0000 Subject: =?UTF-8?q?AHK-Treiber=20f=C3=BCr=20den=20nativen=20Treiber=20verb?= =?UTF-8?q?essert.=20Nun=20mit=20allen=20Steuertasten=20und=20CapsLock=20u?= =?UTF-8?q?nd=20Mod4Lock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.neo-layout.org@547 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- .../ahk_f\303\274r_kbdneo2_Test/AutoHotkey.ahk" | 253 ++++++++++++++++++--- .../steuertasten_hack.exe" | Bin 203660 -> 204032 bytes 2 files changed, 224 insertions(+), 29 deletions(-) diff --git "a/windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/AutoHotkey.ahk" "b/windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/AutoHotkey.ahk" index 362f642..37f97a5 100644 --- "a/windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/AutoHotkey.ahk" +++ "b/windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/AutoHotkey.ahk" @@ -1,49 +1,244 @@ -;VKe2 ist VK_OEM_102 +;== Fehlende Steuerbefehle hinzu == + +;SC138 ist VK_OEM_102 (rechts) ist Mod4 ;»Bild auf« -~vke2 & 4::Sendinput {Blind}{PGUP} +~SC138 & 4::Sendinput {Blind}{PGUP} +;Cursor »Hoch« +~SC138 & l::Sendinput {Blind}{UP} +;»Entfernen« +~SC138 & c::Sendinput {Blind}{DEL} +;»Einfügen« +~SC138 & w::Sendinput {Blind}{INS} +;»Pos1« +~SC138 & u::Sendinput {Blind}{HOME} +;Cursor »Links« +~SC138 & i::Sendinput {Blind}{LEFT} +;Cursor »Runter« +~SC138 & a::Sendinput {Blind}{DOWN} +;Cursor »Rechts« +~SC138 & e::Sendinput {Blind}{RIGHT} +;»Ende« +~SC138 & o::Sendinput {Blind}{END} +;»Bild ab« +~SC138 & '::Sendinput {Blind}{PGDN} + +;SC056 ist VK_OEM_102 (links) ist Mod4 +;»Bild auf« +~SC056 & 4::Sendinput {Blind}{PGUP} ;Cursor »Hoch« -~vke2 & l::Sendinput {Blind}{UP} +~SC056 & l::Sendinput {Blind}{UP} ;»Entfernen« -~vke2 & c::Sendinput {Blind}{DEL} +~SC056 & c::Sendinput {Blind}{DEL} ;»Einfügen« -~vke2 & w::Sendinput {Blind}{INS} +~SC056 & w::Sendinput {Blind}{INS} ;»Pos1« -~vke2 & u::Sendinput {Blind}{HOME} +~SC056 & u::Sendinput {Blind}{HOME} ;Cursor »Links« -~vke2 & i::Sendinput {Blind}{LEFT} +~SC056 & i::Sendinput {Blind}{LEFT} ;Cursor »Runter« -~vke2 & a::Sendinput {Blind}{DOWN} +~SC056 & a::Sendinput {Blind}{DOWN} ;Cursor »Rechts« -~vke2 & e::Sendinput {Blind}{RIGHT} +~SC056 & e::Sendinput {Blind}{RIGHT} ;»Ende« -~vke2 & o::Sendinput {Blind}{END} +~SC056 & o::Sendinput {Blind}{END} ;»Bild ab« -~vke2 & '::Sendinput {Blind}{PGUP} -;»Tab« damit Tab+Shift funzt -vke2 & *]::send {blind}{Tab} +~SC056 & '::Sendinput {Blind}{PGDN} +;== Mod-Locks hinzu == + +;= CapsLock mit Shift+Shift = ;RShift wenn vorher LShift gedrückt wurde LShift & ~RShift:: - if GetKeyState("CapsLock","T") - { - setcapslockstate, off - } - else - { - setcapslockstate, on - } + if GetKeyState("CapsLock","T") + { + setcapslockstate, off + } + else + { + setcapslockstate, on + } return ;LShift wenn vorher RShift gedrückt wurde RShift & ~LShift:: - if GetKeyState("CapsLock","T") - { - setcapslockstate, off - } - else - { - setcapslockstate, on - } + if GetKeyState("CapsLock","T") + { + setcapslockstate, off + } + else + { + setcapslockstate, on + } +return + +56()[{ +IsMod4Locked := 0 +Mod4LockAktion :=0 +~SC056 & SC138:: + if (IsMod4Locked) + { + IsMod4Locked = 0 + Mod4LockAktion = 0 +; MsgBox Mod4-Feststellung aufgebehoben + sendinput {vke2 up} + } + else + { + IsMod4Locked = 1 + Mod4LockAktion = 1 + MsgBox Mod4 festgestellt: Um Mod4 wieder zu lösen drücke beide Mod4 Tasten gleichzeitig + goto SendMod4 + } return +~SC138 & SC056:: + if (IsMod4Locked) + { + IsMod4Locked = 0 + Mod4LockAktion = 0 +; MsgBox Mod4-Feststellung aufgebehoben + sendinput {vke2 up} + } + else + { + IsMod4Locked = 1 + Mod4LockAktion = 1 + MsgBox Mod4 festgestellt: Um Mod4 wieder zu lösen drücke beide Mod4 Tasten gleichzeitig + goto SendMod4 + } +return + +SendMod4: + if(IsMod4Locked AND Mod4LockAktion) + sendinput {vke2 down} + else + sendinput {vke2 up} +return + + +~Shift:: + if (IsMod4Locked) + { + Mod4LockAktion = 0 + goto SendMod4 + } + else +return + +~SHIFT UP:: + if (IsMod4Locked) + { + Mod4LockAktion = 1 + goto SendMod4 + } + else +return + + +~vk15:: + if (IsMod4Locked) + { + Mod4LockAktion = 0 + goto SendMod4 + } + else +return + +~vk15 UP:: + if (IsMod4Locked) + { + Mod4LockAktion = 1 + goto SendMod4 + } + else +return + + +~SC138:: + if (IsMod4Locked) + { + Mod4LockAktion = 0 + goto SendMod4 + } + else +return + +~SC138 UP:: + if (IsMod4Locked) + { + Mod4LockAktion = 1 + goto SendMod4 + } + else +return + +~SC056:: + if (IsMod4Locked) + { + Mod4LockAktion = 0 + goto SendMod4 + } + else +return + + + +~SC056 UP:: + if (IsMod4Locked) + { + Mod4LockAktion = 1 + goto SendMod4 + } + else +return + + +~4:: +if (Mod4LockAktion) +Sendinput {Blind}{PGUP} +return + +~l:: +if (Mod4LockAktion) +Sendinput {Blind}{UP} +return + +~c:: +if (Mod4LockAktion) +Sendinput {Blind}{DEL} +return + +~w:: +if (Mod4LockAktion) +Sendinput {Blind}{INS} +return + +~u:: +if (Mod4LockAktion) +Sendinput {Blind}{HOME} +return + +~i:: +if (Mod4LockAktion) +Sendinput {Blind}{LEFT} +return + +~a:: +if (Mod4LockAktion) +Sendinput {Blind}{DOWN} +return + +~e:: +if (Mod4LockAktion) +Sendinput {Blind}{RIGHT} +return + +~o:: +if (Mod4LockAktion) +Sendinput {Blind}{END} +return +~':: +if (Mod4LockAktion) +Sendinput {Blind}{PGDN} +return \ No newline at end of file diff --git "a/windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/steuertasten_hack.exe" "b/windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/steuertasten_hack.exe" index c7c4228..7504e12 100644 Binary files "a/windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/steuertasten_hack.exe" and "b/windows/kbdneo2/ahk_f\303\274r_kbdneo2_Test/steuertasten_hack.exe" differ -- cgit v1.2.3