Aracılığıyla paylaş


Keyboard and Mouse Input

These commands and functions make it possible for you to control input with the keyboard or mouse.

Use

To

AMOUSEOBJ( ) Function

Create an array containing information about the mouse pointer position and the object over which the mouse pointer is positioned. 

CAPSLOCK( ) Function

Return the current mode of the CAPS LOCK key or set the CAPS LOCK key mode on or off. 

CHRSAW( ) Function

Determine whether or not a character is present in the keyboard buffer. 

CLEAR Commands

Release the specified item or items from memory.

CLEAR Commands

Release the specified item or items from memory.

INSMODE( ) Function

Return the current insert mode, or sets the insert mode on or off. 

KEYBOARD Command

Place the specified character expression in the keyboard buffer. 

LASTKEY( ) Function

Return an integer corresponding to the last key pressed.

MCOL( ) Function

Return the column position of the mouse pointer in the main Visual FoxPro window or a user-defined window. 

MOUSE Command

Perform the equivalent of clicking, double-clicking, or moving the mouse, or perform a drag operation. 

MROW( ) Function

Return the row position of the mouse pointer in the main Visual FoxPro window or in a user-defined window. 

NUMLOCK( ) Function

Return the current mode of the NUM LOCK key or set the mode of the NUM LOCK key on or off. 

ON KEY LABEL Command

Specify a command that executes when you press a specific key or key combination or click the mouse button. 

PLAY MACRO Command

Execute a keyboard macro. 

POP KEY Command

Restore ON KEY LABEL assignments that were placed on the stack with PUSH KEY. 

PUSH KEY Command

Place all current ON KEY LABEL command settings on a stack in memory. 

RESTORE MACROS Command

Restore to memory keyboard macros saved in a keyboard macro file or memo field. 

SAVE MACROS Command

Save a set of keyboard macros to a keyboard macro file or to a memo field.

SET FUNCTION Command

Assign an expression (keyboard macro) to a function key or key combination. 

SET KEYCOMP Command

Control Visual FoxPro keystroke navigation. 

SET MACKEY Command

Specify a key or key combination that displays the Macro Key Definition dialog box.

SET TYPEAHEAD Command

Specify the maximum number of characters that can be stored in the type-ahead buffer. 

See Also

Other Resources

Input and Output (Visual FoxPro)

Language Categories