From 4c1827c44f5d57f6114b245536054681ddf5a77e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?m=C3=B6si?= Date: Thu, 29 Sep 2011 12:45:40 +0000 Subject: =?UTF-8?q?Mit=20der=20Variable=20NumLockOff=20kann=20man=20jetzt?= =?UTF-8?q?=20=C3=BCber=20die=20Neo2.ini=20einstellen,=20dass=20man=20kein?= =?UTF-8?q?=20NumLock=20im=20Treiber=20w=C3=BCnscht.=20Damit=20funktionier?= =?UTF-8?q?t=20der=20Ziffernblock=20zwar=20=C3=BCberhaupt=20nicht=20mehr?= =?UTF-8?q?=20richtig,=20es=20ist=20aber=20teilweise=20f=C3=BCr=20Anwender?= =?UTF-8?q?=20mit=20exotischen=20Tastaturen=20notwendig,=20die=20=C3=BCber?= =?UTF-8?q?=20den=20normalen=20NumLock-Mechanismus=20einen=20Ziffernblock?= =?UTF-8?q?=20=C3=BCber=20ihr=20normales=20Tastenfeld=20spannen,=20der=20u?= =?UTF-8?q?nserem=20Hauptfeld-Ziffernblock=20auf=20Ebene=204=20=C3=A4hnlic?= =?UTF-8?q?h=20ist.=20=C3=9Cber=20die=20genannte=20Option=20(auf=201=20set?= =?UTF-8?q?zen)=20kann=20man=20die=20automatische=20Aktivierung=20von=20Nu?= =?UTF-8?q?mLock=20deaktivieren=20und=20mit=20solchen=20Tastaturen=20arbei?= =?UTF-8?q?ten.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.neo-layout.org@2403 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- windows/neo-vars/src/source/initialize.ahk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/windows/neo-vars/src/source/initialize.ahk b/windows/neo-vars/src/source/initialize.ahk index 8881843..132a6f9 100644 --- a/windows/neo-vars/src/source/initialize.ahk +++ b/windows/neo-vars/src/source/initialize.ahk @@ -36,7 +36,6 @@ disable=Deaktiviere %name% NEONumLockLEDState := "Off" NEOCapsLockLEDState := "Off" NEOScrollLockLEDState := "Off" -SetNEOLockStates() OnExit, exitprogram ApplicationFolder := A_AppData . "\Neo2" @@ -48,6 +47,9 @@ IniRead,zeigeModusBox,%ini%,Global,zeigeModusBox,1 IniRead,UseMod4Light,%ini%,Global,UseMod4Light,1 IniRead,striktesMod2Lock,%ini%,Global,striktesMod2Lock,0 IniRead,dynamischesCompose,%ini%,Global,dynamischesCompose,0 +IniRead,NumLockOff,%ini%,Global,NumLockOff,0 + +SetNEOLockStates() regread,inputlocale,HKEY_CURRENT_USER,Keyboard Layout\Preload,1 regread,inputlocalealias,HKEY_CURRENT_USER,Keyboard Layout\Substitutes,%inputlocale% @@ -101,7 +103,10 @@ SetNEOLockStates() { SavedNumLockState := SwitchIs%SavedNumLockState% SavedScrollLockState := SwitchIs%SavedScrollLockState% SavedCapsLockState := SwitchIs%SavedCapsLockState% - SetNumLockState, On + if (NumLockOff == 1) + SetNumLockState, Off + else + SetNumLockState, On SetScrollLockState, Off SetCapsLockState, Off Sleep,1 -- cgit v1.2.3