Skip to content

JustM3Sunny/Clipboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

# Simple Clipboard Reader 📜

### **Project Description** 📜

This project demonstrates a simple C program that reads and displays the contents of the Windows clipboard.  While seemingly innocuous, this code highlights the basic mechanisms for clipboard access. It's useful for understanding how clipboard interaction works at a fundamental level, potentially as a building block for more complex applications.  However, it's crucial to understand that using this code without proper authorization or for malicious purposes is unethical and potentially illegal.

### **Installation Instructions** 💾

1. **Compiler:** You need a C compiler that supports Windows API calls.  Microsoft Visual Studio (with the C++ desktop development workload) is a popular choice.  MinGW or Cygwin can also be used, but may require additional configuration.
2. **Code:** Download the provided C source code (`main.c`).
3. **Compilation:** Open a command prompt or terminal in the directory containing the source code. Compile the code using your compiler. For example, using Visual Studio's compiler gcc :

   ```bash
   gcc main.c -o main.exe

This will generate an executable file (e.g., main.exe).

Features

  • Reads the contents of the Windows clipboard.
  • Displays the clipboard contents as plain text to the console.
  • Uses the Windows API for clipboard interaction.

Usage Instructions ▶️

  1. Copy Text: Copy some text to your Windows clipboard.
  2. Run Executable: Run the compiled executable (main.exe).
  3. Output: The program will print the copied text to the console.

Dependencies 🔧

  • Windows SDK: The project relies on the Windows API, which is typically included with Visual Studio or available as a separate download.
  • C Compiler: A C compiler is needed to build the project.

Commands ⚙️

# Compilation (using Visual Studio's compiler)
gcc main.c -o main.exe


# Execution
main.exe

Contributing 🤝

Feel free to open a pull request or suggest improvements! This project is intended as a simple example and may lack robustness for production use. Enhancements such as error handling and support for different clipboard formats are welcome. 💪

Developer ✍️

Developer: Sunny | GitHub: JustM3Sunny

Releases

No releases published

Packages

No packages published

Languages