KeybdDriverSetMode?

  • Thread starter Thread starter Tomer
  • Start date Start date
T

Tomer

Hi,

Did anyone use the method KeybdDriverSetMode to set the auto repeat state of
the keyboard?

Tomer.
 
Alternatively to set the repeat rate, you can change:

HKEY_CURRENT_USER\ControlPanel\Keybd\RepeatRate

And to indicate that the system should apply new settings for repeat
rate invoke NotifyWinUserSystem:

const int NWUS_KEYBD_REPEAT_CHANGED = 2;

[DllImport("coredll.dll")]
private static extern bool NotifyWinUserSystem(int eventId);


Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
Thanks!!


Sergey Bogdanov said:
Alternatively to set the repeat rate, you can change:

HKEY_CURRENT_USER\ControlPanel\Keybd\RepeatRate

And to indicate that the system should apply new settings for repeat rate
invoke NotifyWinUserSystem:

const int NWUS_KEYBD_REPEAT_CHANGED = 2;

[DllImport("coredll.dll")]
private static extern bool NotifyWinUserSystem(int eventId);


Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com

Hi,

Did anyone use the method KeybdDriverSetMode to set the auto repeat state
of the keyboard?

Tomer.
 
Back
Top