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:
00292350
Vues:
22
>Thanks George!
>
>I think my biggest problem when playing with the API calls has been deciding the data types. I had them all messed up here. I was seeing DOUBLE as a DWORD (ie Double Word) when really its a double precision float. The others were just guesses.
>
>For some reason I researched the data types in the Hacker's guide, MSDN, here, and the Wiki, and never thought to look at the DECLARE-DLL in the VFP Help for the lengths (until now), wow I feel silly. :)
>
>One thing though, I had to add the @ to your example to get it to work:
>
>llsuccess = (SystemParametersInfo(SPI_GETKEYBOARDSPEED, 0, lnspeed, 0) # 0)
>

>changed to:
>
>llsuccess = (SystemParametersInfo(SPI_GETKEYBOARDSPEED, 0,
@lnspeed, 0)
># 0)
>

>But otherwise it was dead on.
>
>Thanks again.

Thanks for the heads up, Bill. Actually, I'd tested it and did have the ampersand (@) in the test. Just forgot it here:-(. I should also thank you for the constant names, too. When the original post came up, I looked at the SystemParametersInfo function, but couldn't find the constants that would get or set the keyboard state. It's used in my Disable/Enable screen saver program that's avaiable here on the UT. The fact that I had worked with this function before was one reason I was able to get it to work.
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