Record API
Functions for recording and replaying mouse/keyboard events.
record
- record()
Starts recording all keyboard and mouse events in the background. Recording continues until
stop_record()is called.- Returns:
None
stop_record
- stop_record()
Stops the current recording session and returns the captured events.
- Returns:
List of recorded actions in executor-compatible format.
- Return type:
list
The returned list can be passed directly to
execute_action()for playback, or saved to a JSON file for later use.