summaryrefslogtreecommitdiff
path: root/windows/XP/autohotkey/neo20-remap.ahk
diff options
context:
space:
mode:
authornora <nora@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2007-05-02 19:50:19 +0000
committernora <nora@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2007-05-02 19:50:19 +0000
commit1780b4064bd9ba4c8f4d7e8ffae9035ad0642807 (patch)
treed168f50883c7b4dfbedbc9705ebd63627e61e23a /windows/XP/autohotkey/neo20-remap.ahk
parent65222b8585dbbd861206de0d0a599be35274e5cb (diff)
downloadneo-layout-1780b4064bd9ba4c8f4d7e8ffae9035ad0642807.tar.gz
neo-layout-1780b4064bd9ba4c8f4d7e8ffae9035ad0642807.tar.bz2
neo-layout-1780b4064bd9ba4c8f4d7e8ffae9035ad0642807.zip
Autohotkey: Definition AltGr und Caps getauscht, Ebene 5: 0 auf Space
git-svn-id: https://svn.neo-layout.org@88 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'windows/XP/autohotkey/neo20-remap.ahk')
-rw-r--r--windows/XP/autohotkey/neo20-remap.ahk74
1 files changed, 31 insertions, 43 deletions
diff --git a/windows/XP/autohotkey/neo20-remap.ahk b/windows/XP/autohotkey/neo20-remap.ahk
index c702285..f59cc0d 100644
--- a/windows/XP/autohotkey/neo20-remap.ahk
+++ b/windows/XP/autohotkey/neo20-remap.ahk
@@ -1,7 +1,7 @@
/*
- Umbelegung von AltGr auf CapsLock und #,
- dafür Mod5 auf AltGr und <
- Version vom 30.04.2007
+ Umbelegung von Win+Ctrl auf CapsLock und #,
+ Zweites AltGr auf <
+ Version vom 02.05.2007
*/
;#InstallKeybdHook
@@ -32,71 +32,59 @@ menu, tray, tip, %name%
; 3. und 4. Ebene:
-; CapsLock und # (SC02B) werden zu AltGr (SC138)
-; ----------------------------------------------
-; http://www.autohotkey.com/forum/topic181.html
+; CapsLock und # werden zu Win + Ctrl
+; --------------------------------------------
+
*CapsLock::
-Send {SC138 Down}
+Send {RWin Down}
+Send {Control Down}
Loop
{
Sleep, 10
GetKeyState, state, CapsLock, P
- if state = U ; The key has been released, so break out of the loop.
- break
-}
-Send {SC138 Up}
-return
-
-
-*SC02B::
-Send {SC138 Down}
-Loop
-{
- Sleep, 10
- GetKeyState, state, SC02B, P
- if state = U ; The key has been released, so break out of the loop.
- break
+ if state = U
+ break
+ ; The key has been released, so break out of the loop.
}
-Send {SC138 Up}
+Send {RWin Up}
+Send {Control Up}
return
-; 5. und 6. Ebene:
-; < (SC056) und AltGr werden zu Win + Ctrl
-; --------------------------------------------
- ; < funktioniert, aber bei AltGr kommt (manchmal/immer?) nur
- ; Control Down an, aber nicht das Up, dann bleibt Control aktiv
- ; - Lösung ist dann, einmal die normale Controltaste zu drücken.
-
-
-*SC056::
+*#::
Send {RWin Down}
Send {Control Down}
Loop
{
Sleep, 10
- GetKeyState, state, SC056, P
- if state = U ; The key has been released, so break out of the loop.
- break
+ GetKeyState, state, #, P
+ if state = U
+ break
+ ; The key has been released, so break out of the loop.
}
Send {RWin Up}
Send {Control Up}
return
-*SC138::
-Send {RWin Down}
-Send {Control Down}
+; 5. und 6. Ebene:
+; < wird zu zweiter AltGr (SC138)
+; --------------------------------
+
+
+
+*<::
+Send {SC138 Down}
Loop
{
Sleep, 10
- GetKeyState, state, SC138, P
- if state = U ; The key has been released, so break out of the loop.
- break
+ GetKeyState, state, <, P
+ if state = U
+ break
+ ; The key has been released, so break out of the loop.
}
-Send {RWin Up}
-Send {Control Up}
+Send {SC138 Up}
return