Skip to content

rukpat/TypeClipboardText

Repository files navigation

TypeClipboardText

License: MIT

TypeClipboardText is a Windows utility that allows you to send the contents of your clipboard as keystrokes to any active window. This is useful for websites or applications that have disabled the Clipboard Copy & Paste command on text boxes.

Features

  • System Tray Integration: The application runs discreetly in the system tray, accessible via a right-click context menu.
  • Active Window Selection: Dynamically lists all active windows in the context menu for easy selection.
  • UI Automation: Uses UI Automation to reliably send keystrokes to Windows, even those with elevated privileges.
  • Logging: Provides a log of actions and errors for troubleshooting.
  • Special Character Handling: Escapes special characters in the clipboard text for accurate input.
  • Exclude Phrases (Filter): Add words or phrases to an exclude list in the main window; any active window whose title contains a phrase on that list will be hidden from the right-click tray menu and ignored by the automatic double‑click send.
  • Persistent Exclude List: The exclude phrases are saved to %AppData%\TypeClipboardText\exclude.txt and reloaded on startup so your filters persist between runs.
  • Logging control: Logging is disabled by default. Use the Enable Logging checkbox to turn logging on. You can Copy Logs to the clipboard or Clear Logs from the UI.

Installation

  1. Download: Download the latest release from the Releases page.
  2. Extract: Extract the ZIP file to a desired location.
  3. Run: Double-click the TypeClipboardText.exe file to start the application. You can add to startup menu or create a shortcut on the desktop for easier access.

Usage

  1. Copy Text: Copy the text you want to send to your clipboard (e.g., using Ctrl+C).
  2. Right-Click Tray Icon: Right-click the TypeClipboardText icon in the system tray (notification area).
  3. Select Window: Choose the target window from the list in the context menu.
  4. Send Text: The text from your clipboard will be automatically sent to the selected window as if you typed it manually.

Advanced:

  • Edit Clipboard Text: You can directly edit the clipboard text in the context menu before sending it.
  • Double-Click Tray Icon: Automatically sends the clipboard text to the last active window (configurable in the code).

Requirements

  • Windows 10 or 11
  • .NET 8.0 Runtime or higher
  • UIAutomationClient NuGet package

Building from Source

  1. Clone the Repository:
    git clone [https://github.com/rukpat/TypeClipboardText/releases](https://github.com/rukpat/TypeClipboardText.git)
    
  2. Open in Visual Studio: Open the TypeClipboardText.sln file in Visual Studio.
  3. Build: Build the solution (Ctrl+Shift+B).

Tip

Use your favourite GenAI to debug and fix the errors 😊.

Disclaimer

Caution

WARNING: Use the code with caution.

  • This tool is intended for legal use only. Use it responsibly and respect copyright laws.
  • The author is not responsible for any misuse or damage caused by this software.

Contributing

  • Contributions are welcome! Please submit bug reports, feature requests, or pull requests.

License

  • This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

  • This project utilizes the TextCopy library for clipboard operations.
  • It also leverages the UIAutomationClient NuGet package for UI automation functionality.

About

Windows System Tray program when clicked it types (sends key stroke) the content of the clipboard into the active or selected window. Mainly for use when websites such as banks have disabled clipboard paste command.

Resources

License

Stars

Watchers

Forks

Contributors

Languages