Git Product home page Git Product logo

clipboardmonitor's Introduction

ClipboardMonitor

A tool that monitors the clipboard and displays the text data stored in the clipboard.

You can get the number of characters stored in the clipboard and display the title pointed to by the URL.

Screenshot

Install and uninstall

install

It uses Python internally.

Please install Python from Python official site etc. and enter python and commands from the command prompt so that it can be executed.

Then place the release package in your own easy-to-use folder.

Uninstall

Delete the release package together with the folder.

Also, personal settings are placed in the %LOCALAPPDATA%\ClipboardMonitor folder. Delete it if necessary.

How to use

Start CMon.exe. In the initial state, it starts resident in the task tray, but it is also possible to operate it in the state where it is displayed on the taskbar without being resident (switchable by setting).

If you copy the text to the clipboard while Clipboard Monitor is running, the contents are automatically imported, and if it is a URL, the information of the site pointed to by that address is displayed, and if it is other than that, the number of characters etc. is displayed.

Currently supported features

These functions are realized by the Python script file under the Run folder created in the script folder.

Parsing the copied string

You can also add any processing you like (see Reference.md for the processing content).

  • _charcount.py: Count the number of characters. If the mdwc command is installed in the environment, use it to display the number of characters converted to Markdown.
  • _colorcode.py: Works only when the #RGB or #RRGGBB string is copied and displays the color representation of the color code.
  • _urlchecker.py: Works only when copying http or https URL, and displays the status code when accessing the URL and its title if it is a text/html resource.

In addition, Web access is not performed except when _urlchecker.py gets the title and status code of the page.

Conversion script

It is also possible to use a conversion script that performs some processing on the character string on the clipboard from the menu.

Conversion script

These functions are realized by the Python script file under the Conversion folder created in the script folder.

You can also add any processing you like (see Reference.md for the processing content).

  • _bullet.py: Markdown notation bullets are added to the beginning of every line.
  • _changelinkformat.py: Change the link format in the text (Markdown notation -> plain text style, HTML style, etc.)
  • _leaveurl.py: Remove all text from texts that contain URLs, leaving only URLs.

Donation reception

This application accepts donations at Poiit. Please donate if you like.

clipboardmonitor's People

Contributors

takamichie avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

clipboardmonitor's Issues

Localizationにウィンドウの全コントロールに文字列を反映するメソッドを実装する。

今後ウィンドウコントロールの構造が複雑になる可能性を見越して、Preferences.pasでやってるような感じでFindChildControlを使ってすべてのコントロールにローカライズ済み文字列を反映する処理をTLocalizerクラスに実装する。

ただしこの方法だと親子関係を持つウィンドウに対応できないため、フォームコントロールを再帰的に走査するなどの工夫が必要。

コピー時スクリプトのメッセージの切れ目が分かりづらい

現在URLをコピーすると

Sign in to GitHub · GitHub
200 OK
58 char(s)
Markdown
 - root (57)

などのようになってしまいスクリプトの切れ目が分かりづらい。

スクリプトの切れ目が分かりやすくするような拡張(背景色変えるとか)の実装を。

ただし、Lazarus標準のTIpHTMLのCSSサポートは弱いため、ひょっとしたらCEFへの差替など大規模な改修が必要になるかも。

変換スクリプトメニューを階層構造にできるようにする。

変換スクリプトメニューを階層表示できるようにしたい。今後スクリプトが大量になったときに普通に探しにくい。

しかしひょっとしたらメニュー以外の方法をとった方がいいかもしれない。インクリメンタルサーチなどもできるので。

リリースパッケージの改善

  • mdファイルをコンパイルしたHTMLファイルを同梱する
  • スクリーンショットをもうちょっと増やす
  • スクリーンショットをGIFアニメか何かにする

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.