HKEY_CURRENT_USER, Control Panel, Keyboard, KeyboardSpeed = something,
but this doesn't change the keyboard speed.
If I go the usual way with the mouse: Control panel, Keyboard, Keyboard
speed it works, and I see the REGEDIT change afterwards.
What prevents my direct REGEDIT changes from working? I know how to make
the REGEDIT change with a batch file, but has no effect like the manual
REGEDIT change. I want to make a batch because it's much faster than the
mouse once I know which repetition speed I want.
Jean-Pierre Coulon (here "cacas.pam" is what others call "nospam")
>I'm trying to change the keyboard repetition speed with REGEDIT like this:
>
>HKEY_CURRENT_USER, Control Panel, Keyboard, KeyboardSpeed = something,
>
>but this doesn't change the keyboard speed.
>
>If I go the usual way with the mouse: Control panel, Keyboard, Keyboard
>speed it works, and I see the REGEDIT change afterwards.
>
>What prevents my direct REGEDIT changes from working? I know how to make
>the REGEDIT change with a batch file, but has no effect like the manual
>REGEDIT change. I want to make a batch because it's much faster than the
>mouse once I know which repetition speed I want.
I assume the GUI method includes a message (WM_SETTINGCHANGE) to the
keyboard driver that parameters have changed, something to do with the
function SystemParametersInfo using SPI_SETKEYBOARDSPEED and
SPIF_SENDCHANGE; the registry method obviously does not. See:
"SystemParametersInfo Function" at
<http://msdn.microsoft.com/en-us/library/ms724947(VS.85).aspx>.
This function (SystemParametersInfo) is available from the command line
interpreter 4NT (or Take Command as it's called these days). See:
"@WINSYSTEM" at <http://jpsoft.com/help/index.htm?f_winsystem.htm>; it
includes the messaging part, so changes become effective immediately.
Example:
ECHO %@WINSYSTEM[11,31]
will set the keyboard repeat speed to its maximum value of 31.
--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"