On this page
Before you start
Save a profile of your existing workflow before changing Steps. Open a blank Notepad document for the sample text.
Follow these steps
Test ordinary steps first
Use the blank Notepad document to test one click, a Type text action containing Sample Name and a short delay. Set one run and confirm the text appears once.
Create a reusable value
Open Variables & Subflows. Under Reusable values, choose Add value. Enter customer_name, choose Text, enter Sample Name and select Save.
Use Add value to create one named value before you reuse it in a step or subflow. Enlarge image. Use the value
In Type text, use
${customer_name}. Clear the field, restore focus and test once. It should enter Sample Name.Create one subflow
Under Reusable subflows, choose New subflow and name it Fill sample name. Add a Type text step containing
${customer_name}, save the step and save the subflow.Call it once
In Steps, use Add action → Call subflow and choose Fill sample name. Disable the original practice steps, focus the empty text field and run the call once. Keep the originals until this works.
Check your result
- The call enters Sample Name once, without also running the old practice block.
- Required values have the right types.
If you need more help
Variables & Subflows is labeled BETA
The feature checks value types and call chains before a run. First make a short workflow work without reuse, then extract only a block that truly repeats. Keep important runs supervised.
Variable, parameter and subflow reference
Values, parameters and subflows
A reusable value has a name, type and value. Text stores words; Number stores a number; Coordinate keeps X and Y together. Supported fields can use ${customer_name}.
A profile parameter supplies a value for the current run. A subflow groups checked steps so they can be called in more than one place. Neither is encrypted storage for passwords.
Advanced subflow workflow
Reuse a larger block after the first test
Choose a repeated block that already works. Give it a name describing its result and separate values that change from actions that stay the same.
Use compatible Text, Number or Coordinate arguments. Test one Call subflow before replacing every copy. Keep the original block disabled until the call is verified.
Test missing required values and wrong types in a harmless copy. Do not remove validation to force an invalid workflow to run. Recursive calls and excessive call depth are blocked before execution.
Rename, delete and storage behavior
- Renaming a variable or subflow updates references that can be changed safely.
- A referenced item cannot be deleted until its uses are removed.
- A missing subflow, wrong argument type or recursive call is rejected before the workflow sends input.
- Profiles can store the document, run options, variables, subflows and profile parameters. Treat regular profile values as local workflow data, not as a password vault.
-
A portable
.osenpaprofilefile can carry Steps, Run Options, variables, subflows, profile parameters, detector settings and supported embedded image or audio references. It is intended to move one saved profile. - Complete JSON export is a different editable workflow document transfer. Review either kind of imported workflow before running it. Follow the profile import and export walkthrough when moving a saved profile.
If the call fails or enters text twice
Stop with F12 and inspect the document before retrying. Stopping cannot undo input already sent. Creating this subflow does not remove the original practice steps. Disable the original block while testing the call, then clear the field and run one cycle again.
For a missing value, wrong type or missing subflow error, fix the named value or call in the document before running. Keep required values and type checks intact. If the call is still wrong, disable it and re-enable the retained original steps to return to the last tested version.
Reuse checks
- Every variable has the narrow correct type.
- Required values prompt without changing saved defaults.
- A missing or wrong argument stops before input begins.
- One subflow edit reaches every valid caller.
- Re-test every caller after changing a value type, argument, subflow or starting state.
Need the app?
Osenpa Auto Clicker. Check requirements and download options.