Programming with Reflection
StopRecording method
Syntax object.StopRecording Destination, ExistsOption, File
Stops recording activity in Reflection and saves recorded commands to a Reflection Basic (*.rbs) file. This method returns an error if script recording is not active.
Destination Argument type: Enumeration
Specifies the language in which actions are recorded, or whether the recorded script should be discarded. The values are:
rcRBSource
Saves actions as Reflection Basic commands.
rcVBSource
Saves actions as Visual Basic commands.
rcCSource
Saves actions as C commands.
rcDiscard
Stops recording without saving the recorded actions.
ExistsOption Argument type: Enumeration
Specifies an action to take if the file specified in the file name argument already exists:
rcAskUser
Prompts the user to overwrite the existing file, append new data to the existing file, or terminate the save. An error is returned if the user then clicks Cancel.
rcOverwrite
Replaces the existing file.
rcOpenError
Causes StopRecording to return an error.
rcAppend
Adds the recorded commands to the existing file.
File Argument type: String
The file to which commands are saved.