Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Changing keyboard repetition speed with REGEDIT

245 views
Skip to first unread message

Jean-Pierre Coulon

unread,
Oct 10, 2009, 1:43:35 PM10/10/09
to
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.

Jean-Pierre Coulon (here "cacas.pam" is what others call "nospam")

Michael Bednarek

unread,
Oct 11, 2009, 3:00:59 AM10/11/09
to
On Sat, 10 Oct 2009 19:43:35 +0200, Jean-Pierre Coulon wrote in
comp.os.ms-windows.misc:

>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"

0 new messages