GithubHelp home page GithubHelp logo

protonuniverse / clipboard-auto-processor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wudicgi/clipboard-auto-processor

0.0 0.0 0.0 402 KB

剪贴板文本自动处理工具,可调用任何自行编写的脚本。 | A utility that can process clipboard text automatically, using any self-written script file.

License: MIT License

C# 90.45% PHP 7.29% JavaScript 1.01% Python 1.25%

clipboard-auto-processor's Introduction

Clipboard Auto Processor

GitHub release MIT licensed

1. 简介 (English)

Clipboard Auto Processor 是一个剪贴板文本自动处理工具。不同于一般的剪贴板增强软件只是管理历史内容,该工具可以自动调用任何脚本,来自动处理剪贴板中的内容。

screenshot

脚本可以使用 PHP, Python 或 JavaScript 等任何您熟悉的语言来编写,只需实现从原始文本到所需结果的转换即可,其余工作均由 Clipboard Auto Processor 完成。

2. 使用方法

下载最新的 release 版本,解压到任意有写权限的位置,通常只要不放在 Windows, Program Files 或 C 盘根目录等路径下就可以。

首次运行 ClipboardAutoProcessor.exe 主程序时,程序会根据当前系统语言创建 config.ini 配置文件。之后可以修改该文件来设置脚本解释路径和显示字体等选项。

您可以手动创建快捷方式,放置到开始菜单中或桌面上。但是更推荐使用 Launchy, WoxKeypirinha 等快速启动工具,实现随时快速打开使用。

launchy

3. 示例脚本

  • 转换文件路径列表中的反斜杠 (js, php, python)

sample_01_convert_copied_paths

  • 调整从 PDF 文档所复制文本的格式 (php)

sample_02_convert_esp8266_pdf_text

  • 十六进制字符串到数组定义 (php)

sample_03_hex_string_to_code

  • AStyle 代码风格美化 (ini)

sample_04_astyle_c_custom


1. Introduction

Clipboard Auto Processor is a utility to process the text in clipboard automatically. Unlike other clipboard enhancement softwares which could only manage the history contents, this tool can execute any script to process the content automatically.

screenshot

The script can be written in any language that you are familiar with, such as PHP, Python or JavaScript. It only needs to implement the conversion from original text to desired result. Other works will be all done by Clipboard Auto Processor.

2. Usage

Download the latest release version, and extract it to any location that have write permission. Generally any folder except Windows, Program Files and C drive root is OK.

When the ClipboardAutoProcessor.exe is running for the first time, it will create the config.ini file based on the current system language. And then you can edit this file to set script interpreter, display font and other options.

You can manually create the shortcut, and put it into start menu or on desktop. But it is more recommended to use a launcher, such as Launchy, Wox and Keypirinha, to quickly open and use at any time.

launchy

3. Sample scripts

  • Convert the backslashes in copied path list (js, php, python)

sample_01_convert_copied_paths

  • Adjust the text format copied from PDF document (php)

sample_02_convert_esp8266_pdf_text

  • Generate array define code from hex string (php)

sample_03_hex_string_to_code

  • AStyle coding style beautifier (ini)

sample_04_astyle_c_custom

clipboard-auto-processor's People

Contributors

wudicgi 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.