Skip to content

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

License

Notifications You must be signed in to change notification settings

wudicgi/clipboard-auto-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks