summaryrefslogtreecommitdiffstats
path: root/windows/neo-vars/src/source
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--windows/neo-vars/src/source/initialize.ahk10
-rw-r--r--windows/neo-vars/src/source/langstastatur.ahk2
2 files changed, 8 insertions, 4 deletions
diff --git a/windows/neo-vars/src/source/initialize.ahk b/windows/neo-vars/src/source/initialize.ahk
index a9fec08..6e233bb 100644
--- a/windows/neo-vars/src/source/initialize.ahk
+++ b/windows/neo-vars/src/source/initialize.ahk
@@ -35,6 +35,7 @@ disable=Deaktiviere %name%
SetCapsLockState Off
SetScrollLockState Off
+NEONumLockLEDState := "Off"
SetNEONumLockState()
OnExit, exitprogram
@@ -106,15 +107,16 @@ SetNEONumLockState() {
SetNumLockState, On
Sleep, 1 ; damit sich das Aktivieren von NumLock nicht mit dem Deaktivieren der LED prügeln muss
}
- KeyboardLED(2,"off") ; deaktivieren, falls sie doch brennt
+ KeyboardLED(2,NEONumLockLEDState) ; NumLock-LED richtig stellen
}
SetOldNumLockState() {
global
- if (SavedNumLockState == "On")
+ if (SavedNumLockState == "Off") {
+ SetNumLockState, Off ; deaktiviert auch die eventuell eingeschaltete NumLockLED
+ Sleep, 1
+ } else if (NEONumLockLEDState == "Off")
KeyboardLED(2,"on")
- else
- SetNumLockState, Off
}
%EbeneAktualisieren%()
diff --git a/windows/neo-vars/src/source/langstastatur.ahk b/windows/neo-vars/src/source/langstastatur.ahk
index e57d475..4a141cc 100644
--- a/windows/neo-vars/src/source/langstastatur.ahk
+++ b/windows/neo-vars/src/source/langstastatur.ahk
@@ -25,6 +25,7 @@ CharProc__LnS1() {
ED("VKBASC01A",1,"U000073","U001E9E","U0000DF","" ,"U0003C2","U002218") ; ß
ED("VK48SC023",1,"U00017F","U000053","U00003F","U0000BF","U0003C3","U0003A3") ; s
KeyboardLED(2,"on")
+ NEONumLockLEDState := "On"
}
CharProc__LnS0() {
@@ -33,6 +34,7 @@ CharProc__LnS0() {
ED("VKBASC01A",1,"U0000DF","U001E9E","U00017F","" ,"U0003C2","U002218") ; ß
ED("VK48SC023",1,"U000073","U000053","U00003F","U0000BF","U0003C3","U0003A3") ; s
KeyboardLED(2,"off")
+ NEONumLockLEDState := "Off"
if (zeigeModusBox)
TrayTip,Lange-s-Tastatur,Die Lange-s-Belegungsvariante wurde aktiviert. Zum Deaktivieren`, Mod3+F11 drücken.,10,1
}