Turning Num lock on without a keyboard
Discussion
Here is a little tough one.
In the branches the counters have POS terminals which are Win 2k machines with Alphapos keyboards. Like a standard keyboard but with more buttons. Unfortunatley the keyboard does not have a num lock key. When set up the machines had a normal keyboard which was used to set the profile to have num lock on. They are now built into the counter so not easy to get at.
One of the machines has had the Numlock toggled off. It it set in Bios to be on but when you log on it goes off due to the windows profile.
What I need is a soft key to turn it on. Have tried using VNC but that just toggled my local keyboard.
Any ideas? It will save me a 320 mile round trip.
In the branches the counters have POS terminals which are Win 2k machines with Alphapos keyboards. Like a standard keyboard but with more buttons. Unfortunatley the keyboard does not have a num lock key. When set up the machines had a normal keyboard which was used to set the profile to have num lock on. They are now built into the counter so not easy to get at.
One of the machines has had the Numlock toggled off. It it set in Bios to be on but when you log on it goes off due to the windows profile.
What I need is a soft key to turn it on. Have tried using VNC but that just toggled my local keyboard.
Any ideas? It will save me a 320 mile round trip.
There is a registry key that sets the Num Lock status in each users profile (sorry, can't remember it, but it'll be MS' website). You could add it to a logon scrpt.
I haven't got VNC inalled at the moment, but doesn't it have the option to do Ctrl-Alt-Del etc from the window menu (the one with move, size etc.), There might be a Num Lock option there
I haven't got VNC inalled at the moment, but doesn't it have the option to do Ctrl-Alt-Del etc from the window menu (the one with move, size etc.), There might be a Num Lock option there
VbScript in the startup to interrogate the registry and check whether its on or not, something like this?
Dim WSHShell, NumKeyHU, NumKeyCU, NumValue, itemtype, NumOn
Set WSHShell = WScript.CreateObject("WScript.Shell")
NumKeyHU = "HKEY_USERS.DefaultControl
PanelKeyboardInitialKeyboardIndicators"
NumKeyCU = "HKCUControl PanelKeyboardInitialKeyboardIndicators"
itemtype = "REG_DWORD"
NumValue = "2"
NumOn = WshShell.RegRead("HKCUControl
PanelKeyboardInitialKeyboardIndicators")
If NumOn "2" then
WSHShell.RegWrite NumKeyHU, NumValue
WSHShell.RegWrite NumKeyCU, NumValue
NumOn = WshShell.RegRead(NumKeyCU)
ElseIf NumOn = "2" then
Msgbox "Numlock is already on"
Wscrpt.Quit
End If
If NumOn = "2" then
Msgbox "The users numlock will turn on at bootup"
Else
Msgbox "The users numlock is not on"
End if
Dim WSHShell, NumKeyHU, NumKeyCU, NumValue, itemtype, NumOn
Set WSHShell = WScript.CreateObject("WScript.Shell")
NumKeyHU = "HKEY_USERS.DefaultControl
PanelKeyboardInitialKeyboardIndicators"
NumKeyCU = "HKCUControl PanelKeyboardInitialKeyboardIndicators"
itemtype = "REG_DWORD"
NumValue = "2"
NumOn = WshShell.RegRead("HKCUControl
PanelKeyboardInitialKeyboardIndicators")
If NumOn "2" then
WSHShell.RegWrite NumKeyHU, NumValue
WSHShell.RegWrite NumKeyCU, NumValue
NumOn = WshShell.RegRead(NumKeyCU)
ElseIf NumOn = "2" then
Msgbox "Numlock is already on"
Wscrpt.Quit
End If
If NumOn = "2" then
Msgbox "The users numlock will turn on at bootup"
Else
Msgbox "The users numlock is not on"
End if
Liszt said:
Cool except I am getting
Error: Invalid root in registry key ""HKCUControl PanelKeyboardInitialKeyboardIndicators"
Is this for win2000?
:guess mode:
Shouldn't "HKCUControl PanelKeyboardInitialKeyboardIndicators" read "HEY_CURRENT_USER.Control PanelKeyboardInitialKeyboardIndicators" ?
:/guess mode:
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff