xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

KeyTime()

Writes a key code into the keyboard buffer at a specified time.

Syntax

Keytime( <nKey>, <cTime> ) --> lSuccess

Arguments

<nKey>
This is the numeric key code to write into the keyboard buffer. #define constants listed in the Inkey.ch file are used for <nKey>.
<cTime>
This is a Time() formatted character string indicating the time at which the key should be written to the keyboard buffer.

When the hour is set to 99, the key is written every full hour. A time string of "15:99:00" will place a key every minute between 3:00pm and 3:59pm.

Return

The function returns .T. (true) when the timer is successfully activated, otherwise .F. (false).

Note:  when the function is called without a parameter, the timer is deactivated.

Info

See also:HB_IdleAdd(), KEYBOARD, KeySec()
Category: CT:Miscellaneous , Keyboard functions , Miscellaneous functions
Source:ct\keytime.prg
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe