Page 1 of 1 1
Topic Options
#138218 - 2005-04-19 10:50 PM NUMLOCK turned on after login for Windows XP
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Having some problem with:
Code:

; -- SET THE NUMLOCK TO BE ON
IF READVALUE('HKU\.DEFAULT\Control Panel\Keyboard','InitialKeyboardIndicators')<>2
$rc=WRITEVALUE('HKU\.DEFAULT\Control Panel\Keyboard','KeyboardSpeed',31,'REG_SZ')
$rc=WRITEVALUE('HKU\.DEFAULT\Control Panel\Keyboard','KeyboardDelay',1,'REG_SZ')
$rc=WRITEVALUE('HKCU\Control Panel\Keyboard','InitialKeyboardIndicators',2,'REG_SZ')
$rc=WRITEVALUE('HKU\.DEFAULT\Control Panel\Keyboard','InitialKeyboardIndicators',2,'REG_SZ')
ENDIF
; http://support.microsoft.com/?kbid=314879
IF INSTR(@PRODUCTTYPE,'Windows XP')
$rc=SENDKEYS('{NUMLOCK}')
ENDIF



What appears to be happening is that the logonscriptsync is coming in the way of setting the numlock to be on.

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#138219 - 2005-04-19 11:14 PM Re: NUMLOCK turned on after login for Windows XP
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
I am using this code, and have logonscrictsync set on.

The variable $Laptop is read from an ini-file, because it is not practical to have NumLock on on Laptops we turn it
of on Laptops, and on on Desktops.

Code:
If $Laptop = 'Y' ; Slå NumLock fra på bærbare
If ReadValue("HKCU\Control Panel\Keyboard","InitialKeyboardIndicators") <> "0"
$RC = WriteValue("HKCU\Control Panel\Keyboard","InitialKeyboardIndicators","0","REG_SZ")
$RC = SendKeys("{NUMLOCK}")
EndIf
Else ; Slå NumLock til på Desktop PC'er
If ReadValue("HKCU\Control Panel\Keyboard","InitialKeyboardIndicators") <> "2"
$RC = WriteValue("HKCU\Control Panel\Keyboard","InitialKeyboardIndicators","2","REG_SZ")
$RC = SendKeys("{NUMLOCK}")
EndIf
EndIf


-Erik

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 781 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.048 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org