replay_wizard.capturing package

Submodules

replay_wizard.capturing.capture module

Capture process module

replay_wizard.capturing.capture.capture(name, non_blocking_mode=False, keyboard=True, mouse=True)[source]

capture user actions

Parameters:
  • name – sequence name

  • true_time – save or not sequence with true time. default = False

  • non_blocking_mode – use non-blocking threading mode. Default = false

  • keyboard – capture keyboard actions. default = True

  • mouse – capture mouse actions. default = False

replay_wizard.capturing.errors module

Capturing Errors

exception replay_wizard.capturing.errors.UnknownKeyError[source]

Bases: Exception

Input key was unknown (pynput return None)

replay_wizard.capturing.keyboard module

Capturing keyboard events

replay_wizard.capturing.keyboard.capture(sequence, non_blocking_mode=False, exit_only=False)[source]

capture user keyboard actions

Parameters:
  • sequence – current sequence

  • non_blocking_mode – use non-blocking threading mode. Default = false

replay_wizard.capturing.keyboard.key_to_value(key)[source]

Convert key different types to action value

Parameters:

key – key to convert

replay_wizard.capturing.keyboard.on_key_input(sequence, key, action_type: ActionEnum, exit_only=False)[source]

Key input

Parameters:
  • sequence – current sequence

  • key – pressed key

  • action – action type

replay_wizard.capturing.keyboard.on_press(sequence, key, exit_only=False)[source]

Key was pressed

Parameters:
  • sequence – current sequence

  • key – pressed key

replay_wizard.capturing.keyboard.on_release(sequence, key, exit_only=False)[source]

Key was release

Parameters:
  • sequence – current sequence

  • key – pressed key

replay_wizard.capturing.mouse module

Mouse events capturing

replay_wizard.capturing.mouse.capture(sequence)[source]

capture user keyboard actions

Parameters:
  • sequence – current sequence

  • non_blocking_mode – use non-blocking threading mode. Default = false

replay_wizard.capturing.mouse.on_click(sequence, x, y, button, pressed)[source]

On scroll

Parameters:
  • sequence – current sequence

  • x – x mouse position

  • y – y mouse position

  • button – left/right

  • pressed – True/False

replay_wizard.capturing.mouse.on_move(sequence, x, y)[source]

On mouse move

Parameters:
  • sequence – current sequence

  • x – x mouse new position

  • y – y mouse new position

replay_wizard.capturing.mouse.on_scroll(sequence, x, y, dx, dy)[source]

On scroll

Parameters:
  • sequence – current sequence

  • x – x mouse position

  • y – y mouse position

  • dx – delta x

  • dy – delta y

Module contents

Capturing package