DisableKeys

Description:

baDisableKeys allows you to disable key presses.

Platforms:

Windows

Usage:

Result = baDisableKeys( Disable, WindowHandle )

Arguments:

Integer, integer.
WindowHandle is the handle of the window to disable. To disable the keys on all windows, use 0.
If Disable is true, key presses will be disabled.
If Disable is false, key presses will be enabled again - the WindowHandle argument is ignored.

Returns:

Integer.
When disabling the keys, returns 1 if the function was successful, otherwise 0.
When enabling the keys, will always return 1.

Examples:

Director:
KeysOff = baDisableKeys( true , baWinHandle() )

Authorware:
KeysOff := baDisableKeys( true , baWinHandle() )
 

Notes:

If you disable the keys using this function, make sure that you enable the function before your application quits.