Macro recording

Record a Mouse and Keyboard Macro on Windows

Record a short sample, review every captured action and add it to Steps. Replay it once from the same starting state before adding repetition. Recording and playback send real input to the visible desktop.

By Osenpa · Updated
On this page

Before you start

  • Osenpa Auto Clicker 2.1.0 and a text editor such as Notepad.

Follow these steps

  1. Prepare a blank document

    Save your existing automation with Save profile, then choose File → New automation. Open a blank document in Notepad. This test will type Sample and press Tab once.

  2. Choose what to record

    Open Record Actions. Keep Keyboard and Mouse clicks on; turn unused categories off. In Advanced, set Record in to Selected window, select the test window and enable Group typed text.

  3. Record the sample

    Select Start recording. Click inside the blank Notepad document, type Sample and press Tab, then stop recording.

    Record Actions in Osenpa Auto Clicker 2.1.0, with the recorded action list ready for review before adding it to Steps.
    After stopping, the recording is ready for review. Enlarge image.
    1. Start recording captures the mouse and keyboard actions you perform.
    2. Select a recorded action to review or edit it.
    3. Add to steps transfers the reviewed recording into the automation.
  4. Review the action timeline

    Read the Recorded action timeline in order. Keep the intended click, text, Tab and needed delays. Remove unrelated actions before replaying.

    Detail of the recorded action rows and Add to steps button in Osenpa Auto Clicker.
    Review the recorded actions before replaying. Enlarge image.
    1. Select a recorded action to review or edit it.
    2. Add to steps transfers the reviewed recording into the automation.
  5. Add the reviewed actions

    Select Add to steps to put the reviewed recording into your new automation.

  6. Replay once

    Delete the sample text from Notepad and click in the document. Set Run options to one run. Start the run with the configured key; press F12 if it types or clicks in the wrong place.

Check your result

  • Sample appears once, followed by the spacing added by Tab.
  • The sequence contains no unrelated input. Stop and restore the starting state before correcting a failed replay.
If you need more help

When to use this method

Use recording for a short sequence of clicks and typing that you can show once. This example types Sample and adds a tab in a blank document. Playback needs the target window visible; it is not background app control.

Recording and replay limits

Recorded actions
A recording can include keys, clicks, Mouse 4 and Mouse 5, drag, vertical or horizontal scroll and optional pointer movement. The recorded-action editor lets you edit, move or remove a captured action. After adding the recording to Steps, you can select several steps, cut, copy, paste, duplicate or drag them into a new order.
Important limit
If a window opens more slowly during replay, the next step can arrive too early. Keep a deliberate delay or wait for a stable visual condition.

Why focus and timing still matter

Recorded actions repeat input; they do not understand a button or text box. Stop if another window takes focus, a page loads slowly or an elevated app rejects the input.

Keep a deliberate delay or use a tested image or color condition when loading times vary.

If the recording or replay is wrong

Choose Clear in Record Actions to discard the draft without removing existing Steps. Delete the sample text from Notepad, select the intended window again and record a new short example. Play recording runs the draft directly and sends real input.

If a confirmed replay types twice or reaches the wrong control, press F12, inspect the document and clear the practice text before retrying. Check for duplicate enabled steps, stray clicks and removed delays. Undo changes the workflow document; it does not reverse text or clicks already sent to the target.

Need the app?

Osenpa Auto Clicker. Check requirements and download options.