CT_KBDSPEED

 KBDSPEED()
 Sets keyboard auto repeat speed
------------------------------------------------------------------------------
 Syntax

     KBDSPEED(<nDelay>,<nFrequency>) --> lAmended

     Warning!  Use AT keyboards only.

 Arguments

     <nDelay>  Designates the amount of delay before you begin auto
     repeat.  Possible values are from 0 to 3.  The default value is 1.

     <nFrequency>  Designates the number of times a character repeats per
     second.  Possible values are from 0 to 31.  The default value is 12.

 Returns

     KBDSPEED() returns .T. when a new repeat rate is set successfully.

 Description

     KBDSPEED() sets the auto repeat rate for AT keyboards.  Both the time
     delay and repeat rate for auto repeat can be set.  The table below
     provides the values, their corresponding times, and repeat rates:

     Table 13-3: Auto Repeat Time Delay
     ------------------------------------------------------------------------
     <nDelay>     Delay Time
     ------------------------------------------------------------------------
     0            250 millisecond
     1            500 millisecond
     2            750 millisecond
     3            1000 millisecond
     ------------------------------------------------------------------------

     Table 13-4: Repeat Rate for Depressed Keys
     ------------------------------------------------------------------------
     <nFrequency>     Repeat Rate
     ------------------------------------------------------------------------
     0                30 characters per second
     12               10 characters per second
     31               2 characters per second
     ------------------------------------------------------------------------

 Note

     .  It is best to determine valid values experimentally.

 Example

     The quickest setting possible:

     IF KBDTYPE() >0         // Only possible for AT's
        KBDSPEED(0, 0)
     ENDIF

See Also: KBDTYPE() KBDSTAT() KBDDISABLE() DSETKBIOS()

 

Tools – Miscellaneous Functions

Introduction Miscellaneous Functions
ALLOFREE()*  Determines the maximum memory size allocation
BLANK()      Creates a blank value for each data type
COMPLEMENT() Forms the complement value of a data type
DATATYPE()*  Determines the data type of a variable or UDF
GETTIC()     Determines the number of timer ticks
KBDDISABLE() Locks/unlocks the keyboard
KBDEMULATE() Inserts characters into BIOS keyboard buffer to emulate input
KBDSPEED()   Sets keyboard auto repeat speed
KBDSTAT()    Tests for key shift state status, such as Ctrl and Shift
KBDTYPE()    Determines the type of keyboard in use
KEYSEC()     Triggers a key trap after a time delay
KEYTIME()    Triggers a key trap at a specific clock time
MILLISEC()   Time delay in milliseconds
NUL()        Converts the value returned by a function into a null string
SCANKEY()    Queries scan code of keyboard input
SETTIC()     Increases number of time ticks
SHOWKEY()    Continuously displays the INSERT and LOCK status
SOUND()      Creates tones (melodies) by designating frequency and duration
SPEED()      A comparison value used to determine the processor speed
STACKFREE()  Determines the remaining stack space
TOOLVER()    Queries the version number of the Clipper Tools in use
XTOC()       Converts an expression of any data type into a string