Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keyboard tic (repeat) interval
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00291475
Message ID:
00292126
Views:
28
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform