All Projects → Arian8j2 → ClipboardXX

Arian8j2 / ClipboardXX

Licence: MIT license
Header only, lightweight and cross platform C++ library for copy and paste text from clipboard.

Programming Languages

C++
36643 projects - #6 most used programming language
CMake
9771 projects

Projects that are alternatives of or similar to ClipboardXX

nativescript-clipboard
📋 NativeScript plugin to copy stuff to the device clipboard, and read from it again
Stars: ✭ 40 (+11.11%)
Mutual labels:  clipboard
alfred-string-operations
Perform string operations to clipboard content
Stars: ✭ 70 (+94.44%)
Mutual labels:  clipboard
kakboard
Clipboard integration for Kakoune
Stars: ✭ 49 (+36.11%)
Mutual labels:  clipboard
ossFileTransferClient
이 프로젝트는 업무망과 인터넷망으로 분리된 망간자료전송 솔루션의 인터넷망용 클라이언트를 개발합니다.
Stars: ✭ 18 (-50%)
Mutual labels:  clipboard
cookie-extraction
登录后提取在线cookie,更新至服务器或拷贝至剪切板,为爬虫抓取跳过复杂验证码识别程序
Stars: ✭ 46 (+27.78%)
Mutual labels:  clipboard
rofi-fontawesome
fontawesome icon list for rofi dmenu
Stars: ✭ 58 (+61.11%)
Mutual labels:  clipboard
json-to-go
将json生成go的数据结构。Online tool that convert JSON to Go.
Stars: ✭ 16 (-55.56%)
Mutual labels:  clipboard
v-copy
Vue directive to copy to clipboard. (1kB)
Stars: ✭ 88 (+144.44%)
Mutual labels:  clipboard
secure-pbcopy
pbcopy(1) replacement that marks data as confidential
Stars: ✭ 18 (-50%)
Mutual labels:  clipboard
cb
Command line interface to manage clipboard
Stars: ✭ 69 (+91.67%)
Mutual labels:  clipboard
cliptext
Clipboard manager for macOS. Built with Electron.js
Stars: ✭ 37 (+2.78%)
Mutual labels:  clipboard
townshell
For Townscaper, an application providing additional keyboard shortcuts, tools to manipulate .scape files, screen recording
Stars: ✭ 40 (+11.11%)
Mutual labels:  clipboard
SharpClipboard
A library for anonymously monitoring clipboard entries.
Stars: ✭ 127 (+252.78%)
Mutual labels:  clipboard
dokuwiki-plugin-syntaxhighlighter4
SyntaxHighlighter4 plugin for DokuWiki
Stars: ✭ 51 (+41.67%)
Mutual labels:  clipboard
clipboard-manager-electron
A clipboard manager built with Electron
Stars: ✭ 92 (+155.56%)
Mutual labels:  clipboard
org-rich-yank
📋 Rich text clipboard for org-mode: Paste as a #+BEGIN_SRC block of correct mode, with link to where it came from
Stars: ✭ 59 (+63.89%)
Mutual labels:  clipboard
vim-cutlass
Plugin that adds a 'cut' operation separate from 'delete'
Stars: ✭ 134 (+272.22%)
Mutual labels:  clipboard
cotp
Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality.
Stars: ✭ 45 (+25%)
Mutual labels:  clipboard
clipetty
Manipulate the system (clip)board with (e)macs from a (tty)
Stars: ✭ 91 (+152.78%)
Mutual labels:  clipboard
XamarinClipboardPlugin
Cross Platform Clipboard access for Xamarin
Stars: ✭ 24 (-33.33%)
Mutual labels:  clipboard

ClipboardXX

Header only lightweight library to copy and paste text from clipboard
Copyright (C) 2020 Arian Rezazadeh

Example

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

int main() {
    clipboardxx::clipboard clipboard;

    // copy
    clipboard << "text you wanna copy";

    // paste
    std::string paste_text;
    clipboard >> paste_text;
}

Setup

Windows

Nothing specially need to do, just copy clipboard.hpp under include folder to your include path.

Linux

in linux based operating systems, clipboardxx requires xcb and pthread to work, Link them manually or use CMake.

MacOS

There is currently no support for MacOS, Any contribute would be much appreciated.

CMake

By using CMake, there is no need to manually change include path or link dependencies, Just put clipboardxx folder in your project subdirectoy and use add_subdirectory function to create ClipboardXX library and then link library to your target.

add_subdirectory(ClipboardXX)
target_link_libraries(your_target ClipboardXX)

Error handling

In certain situations such as:

  • cannot open clipboard in windows
  • cannot empty clipboard in windows
  • cannot allocate memory for copying data in windows

clipboardxx will throw an execption of type clipboardxx::exception you can handle it by your own way.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].