4876
Post New Requests Here / Re: Request: Force NUMLOCK always on
« Last post by lanux128 on July 01, 2007, 01:59 AM »thanks Ralf, can you try this script and let me know if it works? since you already have AHK, i haven't compiled the script into an EXE. 
NumLock Enforcer
• monitors and keeps your NumLock key on.
• needs Autohotkey.
NumLock Enforcer.ahk (0.79 kB - downloaded 2066 times.)

NumLock Enforcer
• monitors and keeps your NumLock key on.
• needs Autohotkey.
the source
; NumLock Enforcer
; To monitor and switch on the NumLock key
; Date: 01/07/2007 ;Last Updated: 01/07/2007
; Refer: hxxp://www.donationcoder.com/forum/index.php?topic=9018
; Changes since:
; *****
;
#SingleInstance force
;#NoTrayIcon ;if you don't need a tray icon
#InstallKeybdHook
#Persistent
;Menu, tray, Icon, %A_WinDir%\System32\shell32.dll, 105
appname=NumLock Enforcer
SetTimer, EnforceNumLock, 500
Return
EnforceNumLock:
NumLockStatus := GetKeyState("Numlock", "T")
IfEqual, NumLockStatus, 0
{
SetNumLockState, On
;Uncomment the below line if you want some kind of feedback.
;TrayTip,%appname%,NumLock Status = On,,1
}
Return
;Win+p pauses the script,just in case you need the NumLock.
#p::Pause
;Win+q exits...
#q::ExitApp
; To monitor and switch on the NumLock key
; Date: 01/07/2007 ;Last Updated: 01/07/2007
; Refer: hxxp://www.donationcoder.com/forum/index.php?topic=9018
; Changes since:
; *****
;
#SingleInstance force
;#NoTrayIcon ;if you don't need a tray icon
#InstallKeybdHook
#Persistent
;Menu, tray, Icon, %A_WinDir%\System32\shell32.dll, 105
appname=NumLock Enforcer
SetTimer, EnforceNumLock, 500
Return
EnforceNumLock:
NumLockStatus := GetKeyState("Numlock", "T")
IfEqual, NumLockStatus, 0
{
SetNumLockState, On
;Uncomment the below line if you want some kind of feedback.
;TrayTip,%appname%,NumLock Status = On,,1
}
Return
;Win+p pauses the script,just in case you need the NumLock.
#p::Pause
;Win+q exits...
#q::ExitApp

Recent Posts
in this
btw, Ralf what's the model of your Optiflex?