Skip to main content
Version: v4 (Stable)

GETKEY

GETKEY(timeout AS INTEGER) AS INTEGER

This function waits for a key to be pressed, during a maximum time of <timeout> milliseconds.

The function returns the code of the pressed key: 0 to 9 for numerical keys, 10 for A, 11 for B, ..., 16 for #, 17 for *, 22 for 1300 hz detection (call in data mode), -2 when time expired without key, -1 when line is hung-up, -3 if the second call of a telephony transfer is hung-up.