Compartir a través de


How to: Record Macros (Visual FoxPro)

You can record keystroke macros in Visual FoxPro through the Macros Dialog Box.

To record a macro

  1. From the Tools menu, choose Macros.

  2. In the Macros dialog box, choose Record.

  3. Press the key or type the key combination you want to define.

  4. Enter a name for the macro or accept the default and then choose OK.

Visual FoxPro begins recording every keystroke.

Note

Macro names cannot contain spaces.

To stop recording a macro

  1. From the Tools menu, choose Macros.

  2. In the Stop Recording Macro Dialog Box, choose from the following:

    • To save the macro as is, choose OK.

    • To continue recording, choose Continue.

    • To discard the macro, choose Discard.

    • To insert a literal keystroke (the literal meaning of a key instead of any meaning currently assigned to it), choose Insert Literal.

    • To insert a pause, select Seconds, add the amount of time, and choose Insert Pause.

See Also

Reference

Macros Dialog Box

ON KEY LABEL Command

SET FUNCTION Command

Stop Recording Macro Dialog Box

Other Resources

Automating Keystroke Tasks with Macros