* Defined constants #DEFINE SPI_GETKEYBOARDSPEED 10 #DEFINE SPI_SETKEYBOARDSPEED 11 * Get the keyboard speed DECLARE INTEGER SystemParametersInfo IN Win32API; INTEGER uiAction, SHORT uiParam,; INTEGER @pvParam, INTEGER fWinIni lnspeed = 0 llsuccess = (SystemParametersInfo(SPI_GETKEYBOARDSPEED, 0, lnspeed, 0) # 0) * Set the keyboard speed DECLARE INTEGER SystemParametersInfo IN Win32API; INTEGER uiAction, SHORT uiParam,; INTEGER pvParam, INTEGER fWinIni llsuccess = (SystemParametersInfo(SPI_GETKEYBOARDSPEED, lnnewspeed, 0, 0) # 0)Note that there are differences in the declaration to get and set the speed.