Skip to content

Clipboard Typer is a Python script that simulates typing clipboard content, bypassing paste restrictions in secure environments. It listens for Cmd + Shift + V (macOS) or Ctrl + Shift + V (Windows/Linux) and types out the clipboard content. Useful for remote desktops, VMs, or apps that block clipboard pasting. ๐Ÿš€

License

Notifications You must be signed in to change notification settings

samirpatil2000/clipboard-typer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Clipboard Typer

This Python script allows users to "type" the clipboard content instead of pasting it. It is useful in environments where pasting from the clipboard is restricted, but typing is allowed.

Features

  • Monitors keyboard inputs and listens for Cmd + Shift + V (on macOS) or Ctrl + Shift + V (on Windows/Linux).
  • When the key combination is pressed, the script types out the current clipboard content character by character.
  • Ensures that the function triggers only once per key press sequence.

Use Case

Some applications or remote environments disable direct pasting from the clipboard for security reasons. This script bypasses that restriction by simulating keystrokes, effectively "typing" the clipboard content into any text field where manual typing is permitted.

Requirements

Ensure you have Python installed (version 3.x recommended).

Setting Up a Virtual Environment

To keep dependencies isolated, set up a virtual environment:

# Create a virtual environment
python -m venv venv

Activate the virtual environment

On macOS/Linux:

source venv/bin/activate

On Windows:

venv\Scripts\activate

Install dependencies

pip install pynput pyperclip

How to Use

  1. Ensure the virtual environment is activated.

  2. Run the script:

    python script.py
  3. Copy any text to your clipboard.

  4. Place the cursor where you want to insert the clipboard content.

  5. Press:

    • Cmd + Shift + V (on macOS)
    • Ctrl + Shift + V (on Windows/Linux)

    The script will "type" the clipboard content instead of pasting it.

How It Works

  • The script listens for key presses using pynput.
  • When Cmd + Shift + V (or Ctrl + Shift + V) is detected, it retrieves the clipboard content using pyperclip.
  • Instead of pasting, the script uses pynput.keyboard.Controller to simulate typing each character.
  • This allows the content to appear as if it were manually typed, bypassing clipboard paste restrictions.

Notes

  • Ensure the script is running in the background while using it.
  • Some applications with advanced security measures might detect simulated keystrokes.
  • The script currently works for text-based clipboard content only.

License

This script is open-source and can be modified as needed.

About

Clipboard Typer is a Python script that simulates typing clipboard content, bypassing paste restrictions in secure environments. It listens for Cmd + Shift + V (macOS) or Ctrl + Shift + V (Windows/Linux) and types out the clipboard content. Useful for remote desktops, VMs, or apps that block clipboard pasting. ๐Ÿš€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages