GithubHelp home page GithubHelp logo

adzuki1 / swap-case-from-clipboard-text Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 13 KB

This script was planned to run in background to change from upper to lower case, and vice-versa, and update clipboard text.

Python 100.00%

swap-case-from-clipboard-text's Introduction

SwapCase Clipboard Utility

Overview

The SwapCase Clipboard Utility is a Python script that allows you to swap the case (convert uppercase to lowercase and vice versa) of text in your clipboard. It provides a convenient way to perform this operation with a simple hotkey combination.

Features

  • Swap the case of text in the clipboard.
  • Supports the hotkey combination of "Ctrl + Caps Lock" to trigger the case swap.
  • Paste the swapped text at the current cursor position.
  • Easy-to-use and customizable.

How to use

  1. Ensure you have Python3 and pip installed on your system.

  2. Install the required Python libraries by running the following command:

     pip install pyperclip keyboard pyautogui
    
  3. Run the script:

     python swapcase_clipboard.py
    
  4. Once the script is running, use the hotkey combination "Ctrl + Caps Lock" to trigger the case swap:

    • Copy text to your clipboard.
    • Press "Ctrl + Caps Lock" to swap the case of the copied text.
    • The swapped text will be placed in your clipboard, ready to paste.

    To exit the script, you can press the hotkey combination you specified in the code.

Customization

You can customize the following aspects of the script:

  • Hotkey: You can change the hotkey combination by modifying the code in the keyboard.on_press_key line. Make sure to check the keyboard library documentation for valid key combinations.
  • Exit Hotkey: If you wish to change the hotkey for exiting the script, you can modify the keyboard.wait line. By default, it's set to "Ctrl + Esc."

Dependencies

    pyperclip
    keyboard
    pyautogui

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue on GitHub.

Special thanks to the creators of the pyperclip, keyboard, and pyautogui libraries for their contributions to this project.

swap-case-from-clipboard-text's People

Contributors

adzuki1 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.