summaryrefslogtreecommitdiffstats
path: root/windows/autohotkey/Source/Methods-Layers.ahk
diff options
context:
space:
mode:
authordennis <dennis@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-07-02 14:06:46 +0000
committerdennis <dennis@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-07-02 14:06:46 +0000
commitd7c07f2aad09fd84dc5eb43ffcfa4f5d19bf0e5e (patch)
tree4377013ab62a3836c53ae9a3ff5326ac1e6a18db /windows/autohotkey/Source/Methods-Layers.ahk
parentb5884c3a7cbe08d9a56fa8adf7df470904e6545a (diff)
Der Versuch, das viel zu lange gewordenene AHK-Skript in logische Eizelteile aufzuteilen.
git-svn-id: https://svn.neo-layout.org@591 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'windows/autohotkey/Source/Methods-Layers.ahk')
-rw-r--r--windows/autohotkey/Source/Methods-Layers.ahk127
1 files changed, 127 insertions, 0 deletions
diff --git a/windows/autohotkey/Source/Methods-Layers.ahk b/windows/autohotkey/Source/Methods-Layers.ahk
new file mode 100644
index 0000000..b88724b
--- /dev/null
+++ b/windows/autohotkey/Source/Methods-Layers.ahk
@@ -0,0 +1,127 @@
+/*
+ ------------------------------------------------------
+ Modifier
+ ------------------------------------------------------
+*/
+
+
+; CapsLock durch Umschalt+Umschalt
+;*CapsLock::return ; Nichts machen beim Capslock release event (weil es Mod3 ist)
+
+*#::return ; Nichts machen beim # release event (weil es Mod3 ist) ; # = SC02B
+
+;RShift wenn vorher LShift gedrückt wurde
+LShift & ~RShift::
+ 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
+ }
+return
+
+; Mod4-Lock durch Mod4+Mod4
+IsMod4Locked := 0
+< & *SC138::
+ if (IsMod4Locked)
+ {
+; MsgBox Mod4-Feststellung aufgebehoben
+ IsMod4Locked = 0
+ if (UseMod4Light==1) {
+ KeyboardLED(1,"off")
+ }
+ }
+ else
+ {
+; MsgBox Mod4 festgestellt: Um Mod4 wieder zu lösen drücke beide Mod4 Tasten gleichzeitig
+ IsMod4Locked = 1
+ if (UseMod4Light==1) {
+ KeyboardLED(1,"on")
+ }
+
+ }
+return
+*SC138::
+ altGrPressed := 1
+return ; Damit AltGr nicht extra etwas schickt und als stiller Modifier geht.
+*SC138 up::
+ altGrPressed := 0
+return
+
+/* ; das folgende wird seltsamerweise nicht gebraucht :) oder führt zum AltGr Bug; Umschalt+‹ (Mod4) Zeigt ‹
+SC138 & *<::
+ if (IsMod4Locked)
+ {
+ MsgBox Mod4-Feststellung aufgebehoben
+ IsMod4Locked = 0
+ }
+ else
+ {
+ MsgBox Mod4 festgestellt: Um Mod4 wieder zu lösen drücke beide Mod4 Tasten gleichzeitig
+ IsMod4Locked = 1
+ }
+return
+*/
+
+ ; Mod3-Lock durch Mod3+Mod3
+IsMod3Locked := 0
+SC02B & *Capslock:: ; #
+ if (IsMod3Locked)
+ {
+ MsgBox Mod3-Feststellung aufgebehoben
+ IsMod3Locked = 0
+ }
+ else
+ {
+ MsgBox Mod3 festgestellt: Um Mod3 wieder zu lösen drücke beide Mod3 Tasten gleichzeitig
+ IsMod3Locked = 1
+ }
+return
+
+
+*Capslock:: return
+;Capslock::MsgBox hallo
+/*
+Capslock & *:
+ if (IsMod3Locked)
+ {
+ MsgBox Mod3-Feststellung aufgebehoben
+ IsMod3Locked = 0
+ }
+ else
+ {
+ MsgBox Mod3 festgestellt: Um Mod3 wieder zu lösen drücke beide Mod3 Tasten gleichzeitig
+ IsMod3Locked = 1
+ }
+return
+*/
+
+/*
+; Wird nicht mehr gebraucht weil jetzt auf b (bzw. *n::)
+; KP_Decimal durch Mod4+Mod4
+*<::
+*SC138::
+ if GetKeyState("<","P") and GetKeyState("SC138","P")
+ {
+ send {numpaddot}
+ }
+return
+
+*/
+
+
+