Skip to content

smasherprog/clipboard_lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clipboard_lite

Cross-platform Clipboard Management library . . . this is made to be lightweight and fast. see the Test folder for a demo https://github.com/smasherprog/clipboard_lite/blob/master/Test/main.cpp

No External Dependencies

Platforms supported:

  • Windows XP and Up
  • MacOS
  • Linux
  auto clipboard = SL::Clipboard_Lite::CreateClipboard()
    ->onText([](const std::string& text) {
      std::cout << text << std::endl;
    })->onImage([&](const SL::Clipboard_Lite::Image& image) {
        std::cout << "onImage Height=" << image.Height << " Width=" << image.Width << std::endl;
    })->run();
        
    std::string txt = "pasted text";
    clipboard->copy(txt);