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:
00292353
Vues:
29
>Thank you all very much for your prompt and helpful replies. Pretty easy once you learn how.
>
>Note that the last line of George's code should probably be:
llsuccess = (SystemParametersInfo(SPI_SETKEYBOARDSPEED, @lnSpeed, 0, 0) # 0). If this is wrong, George, jump in.

Hi James, here's the corrected post:
* Constant declarations
#DEFINE SPI_GETKEYBOARDSPEED 10
#DEFINE SPI_SETKEYBOARDSPEED 11
* Get keyboard tick rate
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 tick rate
DECLARE INTEGER SystemParametersInfo IN Win32API;
  INTEGER uiAction, SHORT uiParam,;
  INTEGER pvParam, INTEGER fWinIni
llsuccess = (SystemParametersInfo(SPI_SETKEYBOARDSPEED, lnspeed, 0, 0) # 0)
Setting this requires that the speed be passed by value in the uiParam parameter. Getting the value requires that the pvParam be passed by reference.

Is this what you meant?
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