Recent

Author Topic: ...keyboard repeat rate...  (Read 2203 times)

marcio2003

  • Jr. Member
  • **
  • Posts: 69
...keyboard repeat rate...
« on: May 16, 2015, 01:32:56 am »
How the application can disable or change the keyboard repeat rate in Windows 7?
Lazarus 2.0.10 Windows 10 64bits

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: ...keyboard repeat rate...
« Reply #1 on: May 16, 2015, 01:47:09 am »
SystemParametersInfo(SPI_SETKEYBOARDSPEED, DesiredValue, Pointer(0), SPIF_UPDATEINIFILE);

marcio2003

  • Jr. Member
  • **
  • Posts: 69
Re: ...keyboard repeat rate...
« Reply #2 on: May 16, 2015, 01:32:40 pm »
Thanks @typo, is good to change value. But to disable/enable it, how to do?
How can i to use SPI_SETSTICKYKEYS, SPI_SETTOGGLEKEYS, SPI_SETFILTERKEYS to disable/enable it? Can someone help me?
« Last Edit: May 16, 2015, 01:41:47 pm by marcio2003 »
Lazarus 2.0.10 Windows 10 64bits

marcio2003

  • Jr. Member
  • **
  • Posts: 69
Re: ...keyboard repeat rate...
« Reply #3 on: May 27, 2015, 01:42:15 pm »
Can someone help me?
Lazarus 2.0.10 Windows 10 64bits

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: ...keyboard repeat rate...
« Reply #4 on: May 27, 2015, 01:49:45 pm »
The recommended way is to intercept keyboard messages and change it for your program only, not for the whole system.

http://stackoverflow.com/questions/503538/delphi-how-do-i-stop-taction-shortcut-keys-autorepeating

 

TinyPortal © 2005-2018