Skip to content

docs: make README.md the primary English doc; add Chinese README.zh-CN.md with full API coverage#1

Draft
Copilot wants to merge 1 commit into
masterfrom
copilot/update-md-docs-for-api-framework
Draft

docs: make README.md the primary English doc; add Chinese README.zh-CN.md with full API coverage#1
Copilot wants to merge 1 commit into
masterfrom
copilot/update-md-docs-for-api-framework

Conversation

Copy link
Copy Markdown

Copilot AI commented May 7, 2026

The existing README was Chinese-only, outdated (wrong method names, missing APIs), and lacked any package metadata badges.

Changes

  • README.md — rewritten as primary English document

    • Badges: NuGet version, NuGet downloads, MIT license, .NET 8.0
    • Language switcher → README.zh-CN.md
    • Full API coverage: keyboard (sync + async), mouse move/click/scroll, system info, clipboard
    • API reference table
  • README.zh-CN.md — new Chinese document

    • Same badge set + language switcher → README.md
    • Corrected API calls: Move()MouseMove(), added InputSimulator. prefix on info methods, added async overloads, GetScalingFactorForWindow, and the Clipboard/ClipboardFormat section that was entirely absent
    • API reference table in Chinese

MouseWhellRoll is preserved as-is in both docs — it mirrors the actual method name in source.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the project documentation by making README.md the primary English README and adding a full-featured Simplified Chinese counterpart (README.zh-CN.md), aiming to bring the docs in sync with the current public API surface.

Changes:

  • Rewrites README.md in English with badges, language switcher, updated usage examples, and an API reference table.
  • Adds README.zh-CN.md with equivalent coverage in Simplified Chinese, including clipboard and DPI-scaling APIs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 12 comments.

File Description
README.md Rewritten as the primary English README with badges, examples, and API reference.
README.zh-CN.md New Simplified Chinese README mirroring the English README’s coverage and structure.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
[![.NET](https://img.shields.io/badge/.NET-8.0-purple.svg)](https://dotnet.microsoft.com/download/dotnet/8.0)

InputSimulator是一个简单的模拟键盘输入的包,其中包含了模拟键盘按键输入和鼠标输入
**English** | [简体中文](README.zh-CN.md)
Comment thread README.md
Comment on lines +85 to +87
Point screenSize = InputSimulator.GetScreenSize(); // Screen resolution (width x height)
Point mousePos = InputSimulator.GetMousePosition(); // Current mouse cursor position
(double X, double Y) rel = InputSimulator.GetMousePointRelatively(); // Mouse position as a ratio of screen size (0.0–1.0)
Comment thread README.md
Point screenSize = InputSimulator.GetScreenSize(); // Screen resolution (width x height)
Point mousePos = InputSimulator.GetMousePosition(); // Current mouse cursor position
(double X, double Y) rel = InputSimulator.GetMousePointRelatively(); // Mouse position as a ratio of screen size (0.0–1.0)
bool isDown = InputSimulator.GetMouseDown(MouseButton.Left); // Check whether the left mouse button is held down
Comment thread README.md
Comment on lines +136 to +137
| `SetClipboardContent(string text, uint format)` | Write text to the clipboard |
| `GetClipboardContent(uint format)` | Read content from the clipboard |
Comment thread README.zh-CN.md
[![许可证: MIT](https://img.shields.io/badge/许可证-MIT-yellow.svg)](LICENSE)
[![.NET](https://img.shields.io/badge/.NET-8.0-purple.svg)](https://dotnet.microsoft.com/download/dotnet/8.0)

[English](README.md) | **简体中文**
Comment thread README.zh-CN.md
Comment on lines +136 to +137
| `SetClipboardContent(string text, uint format)` | 将文本写入剪切板 |
| `GetClipboardContent(uint format)` | 从剪切板读取内容 |
Comment thread README.md
Comment on lines +56 to +58
InputSimulator.LocateTo(1900, 202);
InputSimulator.LocateTo(new Point(0, 0));

Comment thread README.md
| `PressKey(char key)` | Press and immediately release the specified key |
| `PressKeyAsync(char key, int holdTime)` | Hold the key for the given duration then release (async) |
| `InputKeys(string keys)` | Press each character in the string in sequence |
| `InputKeysAsync(string keys, int holdTime, int delay)` | Press each key with configurable hold time and delay (async) |
Comment thread README.zh-CN.md
Comment on lines +56 to +58
InputSimulator.LocateTo(1900, 202);
InputSimulator.LocateTo(new Point(0, 0));

Comment thread README.zh-CN.md
| `PressKey(char key)` | 按下并立即松开指定按键 |
| `PressKeyAsync(char key, int holdTime)` | 按住指定按键一段时间后松开(异步) |
| `InputKeys(string keys)` | 依次按下字符串中的每个按键 |
| `InputKeysAsync(string keys, int holdTime, int delay)` | 依次按下每个按键,支持按住时长和间隔延迟(异步) |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants