Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keyboard tic (repeat) interval
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00291475
Message ID:
00292052
Vues:
26
Hi Bill,

You're pretty close. Here's how
* 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.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform