Changeset 1557

Show
Ignore:
Timestamp:
01/27/09 16:17:59 (4 years ago)
Author:
martin_r
Message:

#114 fixed: Status von Numlock wird bei Unterbrechen und Beenden des Skripts bis zum Wiederaktivieren des Skripts wiederhergestellt

Location:
windows/neo-vars/src/source
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • windows/neo-vars/src/source/initialize.ahk

    r1246 r1557  
    3535 
    3636SetCapsLockState Off 
     37Gosub, SaveNumLockState 
    3738SetNumLockState Off 
     39OnExit, exitprogram 
    3840SetScrollLockState Off 
    3941KeyboardLED(2,"off") ; deaktivieren, falls sie doch brennt 
  • windows/neo-vars/src/source/trayfunctions.ahk

    r1223 r1557  
    44    menu, tray, tip, %name% 
    55    menu, tray, icon, %ResourceFolder%\neo_enabled.ico,,1 
    6     suspend , off ; Schaltet Suspend aus -> NEO 
     6    Gosub, SaveNumLockState 
     7    SetNumLockState Off 
     8    suspend, off ; Schaltet Suspend aus -> NEO 
    79  } else { 
    810    menu, tray, rename, %disable%, %enable% 
    911    menu, tray, tip, %name% : Deaktiviert 
    1012    menu, tray, icon, %ResourceFolder%\neo_disabled.ico,,1 
    11     suspend , on  ; Schaltet Suspend ein -> QWERTZ 
     13    SetNumLockState, %SavedNumLockState% 
     14    suspend, on  ; Schaltet Suspend ein -> QWERTZ 
    1215  } 
    1316return 
     
    5962 
    6063exitprogram: 
     64  SetNumLockState, %SavedNumLockState% 
    6165  exitapp 
    6266return 
    6367 
     68SaveNumLockState: 
     69  if GetKeyState("NumLock","T") 
     70    SavedNumLockState = On 
     71  else 
     72    SavedNumLockState = Off 
     73return 
     74