Stop Recorded Scripts From Ending Early in LDPlayer
A script recorded with the Operation Recorder can stop halfway through. The source article links this to a script that closes a game or app while the **End script when game crashes** option is checked in the recorder settings. Clearing that
Before You Start
Prerequisites: The script you want to fix, recorded in the Operation Recorder.; The step in the script that closes the game or app, so you know where the stop happens.
Step-by-Step
- Open LDPlayer.
- Open Operation recorder.
- In the Operation recorder window, open the menu at the top right.
- Select Setting.
- Clear the checkbox next to End script when game crashes.
- Run the script again, including the step that closes the game or app. The script should continue to its last step.
## Overview A script recorded with the Operation Recorder can stop halfway through. The source article links this to a script that closes a game or app while the End script when game crashes option is checked in the recorder settings. Clearing that option keeps the script running after the app closes.
## Why this works The End script when game crashes option tells a script to stop when the app it controls closes. A script that closes the game on purpose triggers that stop, even though nothing crashed. Clearing the option removes that automatic stop, so the script continues to its remaining steps.
## What to expect After step 5, the checkbox is clear. During the next run, the script keeps going after the game or app closes and ends at its last step.
## Verify Run the script to the end. Check that the last step completes and that the game or app closed only where you intended.
## When to keep the option on Keep End script when game crashes checked if you want a script to stop right away when the game crashes. For example, a script that taps through menus may click the wrong places after a crash. Stopping early prevents that.
## Common mistakes
- Clearing the option and then forgetting that a real crash will no longer stop the script.
- Recording a close step you did not intend to keep.
- Expecting a script to recover from a crash on its own. With the option cleared, it does not stop, so check runs that you leave unattended.
## Before you rerun the script
- Read through the recorded steps and mark the step that closes the game or app.
- Decide whether you want the script to stop on a crash. Keep the option checked for scripts that should stop.
- Run the script once while you watch it, so you can stop it if it behaves unexpectedly.
## Notes and Troubleshooting
- With this option cleared, the script does not stop when the game or app closes, including when the script closes it on purpose. Watch for a crash during a run, because the script will not stop on its own in that case.
- For more on recording scripts, see Recording and Replaying Scripts With the Operation Recorder in LDPlayer.
Needs review: source content is limited.
## Related