>>>I've got a grid I need to slow down due to the key-repeat rate being too high. If anyone knows the API call to set the rate, let me know...
>>
>>There's no way to do it via Win32 that I know of. Like many other things in the control panel applets, this is generally something you don't want to mess with. I know if an app slowed down my keyboard without my permission, I'd be a little irked. :-)
>
>SystemParametersInfo() will do this - the repeat delay time is set with the SPI_SETKEYBOARDDELAY and the repeat rate is SPI_SETKEYBOARDSPEED; it's documented in the MSDN Platform SDK docs. The function is declared:
>
Correction:
DECLARE SHORT SystemParametersInfo IN WIN32API ;
INTEGER uiAction, ;
INTEGER uiParam, ;
INTEGER @ pVoid, ;
INTEGER fWinINI
#DEFINE SPI_SETKEYBOARDSPEED 11
#DEFINE SPI_GETKEYBOARDSPEED 10
#DEFINE TWOPOINTFIVEREPSSEC 0
nRepRate = 0
=SystemParametersInfo(SPI_GETKEYBOARDSPEED,0,@nRepRate,0)
=SystemParametersInfo(SPI_SETKEYBOARDSPEED,TWOPOINTFIVEREPSSEC,0,0)