AlexSJC 的博客

元素周期表

基于 ACS 的 https://www.acs.org/education/whatischemistry/periodictable.html 修改制作而成。 元素周期表(Periodic table of elements),根据原子序数的递增,将所有已发现的化学元素组织在行(周期)和列(族)

AlexSJC 发布于 2023-12-18

微信/QQ/Tim 防撤回(Windows)

https://github.com/huiyadanli/RevokeMsgPatcher 适用于 Windows 下 PC 版微信/QQ/TIM的防撤回补丁。支持最新版微信/QQ/TIM,其中微信能够选择安装多开功能。

AlexSJC 发布于 2023-12-16

C# UniqueWindow

using System.Collections.Generic; using System.Windows; public class UniqueWindow { private static readonly List<Window> windows = new(); pu

AlexSJC 发布于 2023-12-14

WPF 工具窗口

更改指定窗口的属性。 函数还将指定偏移量的 32 位 (长) 值设置为额外的窗口内存。 https://learn.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-setwindowlonga

AlexSJC 发布于 2023-12-12

C# 开机启动

using Microsoft.Win32; using System.Diagnostics; public class AutoStart { public const string KeyPath = @"SOFTWARE\Microsoft\Windows\CurrentVersi

AlexSJC 发布于 2023-12-09

Clash 删库

11月2日,Clash for Windows 宣布停更并删库。 11月3日,Clash Core 及多个客户端项目在 GitHub 上被删除或归档。 随着 Clash Core 的停更,所有依赖 Clash Core 进行二次开发的项目失去了根基,意味着整个生态或将面临死亡。

AlexSJC 发布于 2023-11-18

Xamarin.Android 请求忽略电池优化

<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" /> if (Build.VERSION.SdkInt >= BuildVersionCodes.M) { Powe

AlexSJC 发布于 2023-11-12

Xamarin.Android 前台服务

public const string CHANNEL_ID = "default_channel"; public const string CHANNEL_NAME = "Default Channel"; public const int NOTIFICATION_ID = 10000; p

AlexSJC 发布于 2023-11-10

常见 Copyright 写法

Microsoft © Microsoft 2023

AlexSJC 发布于 2023-10-28

C# 通配符

请使用最新的 NuGet 包:https://www.nuget.org/packages/Asjc.Wildcard

AlexSJC 发布于 2023-10-23

C# 异步 Ping 多个 IP

public static async Task<List<string>> PingIPs(List<string> ips, int timeout = 1000) { var tasks = ips.Select(ip => new Ping().SendPingAsync(ip, t

AlexSJC 发布于 2023-10-21

WPF 应用的 .csproj 建议

<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>net8.0-windows</TargetFramework> <Nu

AlexSJC 发布于 2023-10-18

WPF 重写语言实现本地化

添加这段代码(Application_Startup): FrameworkElement.LanguageProperty.OverrideMetadata( typeof(FrameworkElement), new FrameworkPropertyMetadata(

AlexSJC 发布于 2023-10-17

免费安装 HEVC 视频扩展

A 使用此链接直接安装到电脑: https://apps.microsoft.com/detail/9N4WGH0Z6VHQ?hl=zh-cn&gl=CN B

AlexSJC 发布于 2023-10-09

深蓝词库转换

https://github.com/studyzy/imewlconverter imewlconverter_Windows.zip

AlexSJC 发布于 2023-10-09
上一页 下一页