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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

GC.Collect behavior? 2
Screen Capture? 1
load a form by its name? 2
Disable keyboard repeat? 4
Threading problem 2
Const object takes memory? 2
Disable sound notifications? 6
ArrayList filter? 1

Back
Top