diff options
| author | mösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2009-07-08 19:19:48 +0000 | 
|---|---|---|
| committer | mösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2009-07-08 19:19:48 +0000 | 
| commit | 893ae16089d3f22459547774ec959ae56ce4f801 (patch) | |
| tree | ecede301fd351ef18b52a8844885e379a4731d25 /windows/neo-vars/src/source/initialize.ahk | |
| parent | b822d4abc949f0262c17ad98fcc54dcf9dc40c1b (diff) | |
| download | neo-layout-893ae16089d3f22459547774ec959ae56ce4f801.tar.gz neo-layout-893ae16089d3f22459547774ec959ae56ce4f801.tar.bz2 neo-layout-893ae16089d3f22459547774ec959ae56ce4f801.zip | |
LED-Zustände auch für den Lang-ſ-Modus richtig gestellt.
git-svn-id: https://svn.neo-layout.org@1916 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'windows/neo-vars/src/source/initialize.ahk')
| -rw-r--r-- | windows/neo-vars/src/source/initialize.ahk | 10 | 
1 files changed, 6 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%()
 | 
