Skip to content

Commit

Permalink
Upgrade SDK to .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
suoyukii committed Nov 25, 2024
1 parent 7872e66 commit 703dc51
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ko_fi: suoyukii
custom:
- https://afdian.com/a/suoyukii
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.idea
*/bin
*/obj
*.cmd
*/obj
6 changes: 5 additions & 1 deletion InsertTextToCursorExample/InsertTextToCursorExample.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
<PublishAot>true</PublishAot>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugType>none</DebugType>
</PropertyGroup>

<ItemGroup>
Expand Down
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
<h1 align="center">InsertTextToCursorExample</h1>
<h1 align="center">Insert Text To Cursor Example</h1>
<h4 align="center">Insert Text To Cursor Example for Avalonia</h4>

<p align="center">
<a href="https://dotnet.microsoft.com">
<img src="http://img.shields.io/badge/.Net-8.0-1e90ff.svg"/>
<img src="http://img.shields.io/badge/.NET-9.0-1e90ff?style=for-the-badge"/>
</a>
<a href="https://avaloniaui.net">
<img src="http://img.shields.io/badge/Avalonia-11.1-1e90ff.svg"/>
<img src="http://img.shields.io/badge/Avalonia-11.2-1e90ff?style=for-the-badge"/>
</a>
</p>

<p align="center">
<img src="https://img.shields.io/badge/English-lightgray?style=for-the-badge"/>
<a href="README/zh-cn.md">
<img src="https://img.shields.io/badge/简体中文-1e90ff?style=for-the-badge"/>
</a>
</p>

---

This is an example of using win32api to insert text at the cursor.

# Features
## Features

- Support for unicode characters
- Support for long texts
- Support for long texts

## ✨ Install

- [Download InsertTextToCursorExample](https://github.com/suoyukii/InsertTextToCursorExample/releases)
29 changes: 29 additions & 0 deletions README/zh-cn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<h1 align="center">Insert Text To Cursor Example</h1>
<h4 align="center">使用 Avalonia 制作的 鼠标光标插入文本示例</h4>

<p align="center">
<a href="https://opensource.org/licenses/MIT">
<img src="http://img.shields.io/badge/License-MIT-1e90ff?style=for-the-badge"/>
</a>
<a href="https://dotnet.microsoft.com">
<img src="http://img.shields.io/badge/.Net-9.0-1e90ff?style=for-the-badge"/>
</a>
<a href="https://avaloniaui.net">
<img src="http://img.shields.io/badge/Avalonia-11.2-1e90ff?style=for-the-badge"/>
</a>
</p>

---

中文名:鼠标光标插入文本示例

这是一个使用 win32api 在鼠标光标处插入文本的示例。

## ✨ 功能

- 支持 unicode 字符
- 支持长文本

## ✨ 安装

- [下载 InsertTextToCursorExample](https://github.com/suoyukii/InsertTextToCursorExample/releases)

0 comments on commit 703dc51

Please sign in to comment.