Giter Site home page Giter Site logo

haceau-zoac / clipboard Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 30.2 MB

A clipboard editor for windows platform and corresponding libclipboard.一个适用于windows平台的剪切板编辑器,以及对应的libclipboard。

License: GNU General Public License v3.0

Batchfile 2.34% C++ 97.66%

clipboard's Introduction

clipboard

clipboard是一个用于编辑剪切板的Windows控制台应用程序。 他还有对应的libclipboard

欢迎 Issues 和 Pull Request!

快速开始

clipboard

前提条件

  • C++编译器
  • Windows操作系统
  • git

构建

  1. git clone [email protected]:Haceau-Zoac/clipboard

  2. 使用Visual Studio2019打开解决方案项目 或 运行build.bat

    • 若无msvc编译器,请自行修改build.bat
  3. 按Ctrl+F5(Visual Studio),跳转到exe文件夹,打开控制台运行

示例

clipboard

可能输出:Hello, world!

clipboard edit "qwq" & clipboard

输出:qwq

libclipboard

前提条件

  • git

构建

  1. git clone [email protected]:Haceau-Zoac/clipboard
  2. clipboard.hpp放到你的项目目录下
  3. #include "clipboard"

示例

#include <iostream>
#include <string>
#include "clipboard.hpp"

int main(void)
{
    try
    {
        hac::clipboard clip;
        std::cout << "当前剪切板内容为" << clip.get() << '\n';
        std::cout << "请输入:";
        std::string str;
        std::getline(std::cin, str);
        clip.set(str);
        std::cout << "当前剪切板内容为" << clip.get();
    }
    catch (hac::clipboard_exception ex)
    {
        std::cerr << "Clipboard exception:" << ex.what();
    }

    return 0;
}

clipboard's People

Contributors

haceau-zoac avatar

Stargazers

 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.