Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_keyrate() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_KEYRATE()

 DESCRIPTION

 C_KEYRATE() sets the ROM BIOS key repeat rate and the delay time
 between keystrokes.  It will allow the key rate and delay to be
 decreased or increased, to speed up or slow down the time it takes
 for a program to receive a keystroke.  Increasing the key rate has
 the effect of greatly increasing the speed at which functions such
 as C_SELECT() and C_BROWSE() can scroll through a database.  Even
 Clipper commands such as MENU TO and GET/READ can benefit by
 increasing the key rate.

 NOTES

 The default setting on an IBM PC or compatible is a key repeat rate
 of 12 (10.0 characters per second) and a delay of 1 (500 milliseconds).

 SYNTAX

 C_KEYRATE(repeat, delay)

 PARAMETERS

 repeat (N) is the numeric key repeat rate value (0-fastest to 31-
 slowest) that determines the rate at which a key is repeated.  See
 the table below:

 VALUE  REPEAT RATE*   VALUE   REPEAT RATE*
 -----  ------------   -----   ------------
   0    30.0             16    7.5
   1    26.7             17    6.7
   2    24.0             18    6.0
   3    21.8             19    5.5
   4    20.0             20    5.0
   5    18.5             21    4.6
   6    17.1             22    4.3
   7    16.0             23    4.0
   8    15.0             24    3.7
   9    13.3             25    3.3
  10    12.0             26    3.0
  11    10.9             27    2.7
  12    10.0             28    2.5
  13     9.2             29    2.3
  14     8.6             30    2.1
  15     8.0             31    2.0

 * Repeat Rate is given in characters per second.

 delay (N) is the numeric delay value (0-fastest to 3-slowest), that
 determines the amount of delay between each keystroke.  See the
 table below:

 VALUE  DELAY (MILLISECONDS)
 -----  --------------------
 0      250
 1      500
 2      750
 3      1000

 RETURNS

 There is no return value.

 EXAMPLES

 private xarr[3]
 xarr[1] = "Add"
 xarr[2] = "Change"
 xarr[3] = "Delete"

 c_keyrate(4,0)         && Set to faster key rate and delay
 ...
 c_pop(10,10,xarr)      && Call pop-up function (with faster key rate)
 ...
 c_keyrate(12,1)        && Set back to PC defaults


See Also: C_KBFLAGS() C_KBEFLAGS() C_ISEXTKB() C_KEYBOARD()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson