摘要: windows服务下启动外部UI程序出现无界面 做一个windows服务监听服务,涉及到windows服务启动外部程序的一个过程,但是调试测试发现,无法简单的用process.start()这种方法, 原因是在vista和win7这样的系统下,服务是运行在session 0,而基本上应用是运行在se 阅读全文
posted @ 2026-02-07 08:29 stweily 阅读(3) 评论(0) 推荐(0)
摘要: 仅记录本人的心得,不是正常阅读(待有时间再整理) Properties _MainTex ("Flow Texture", 2D) = "white" {} 如果是Image,那这个纹理默认会从image的纹理属性里过来。 Subshader Tags RenderType: Opaque // 不 阅读全文
posted @ 2026-01-13 09:10 stweily 阅读(6) 评论(0) 推荐(0)
摘要: 先看脚本 IEnumerator YeildMethod() { yield return new WaitForSeconds(2f); Debug.Log("2秒到了"); while (true) { yield return new WaitUntil(() => Input.GetKeyD 阅读全文
posted @ 2026-01-05 15:32 stweily 阅读(7) 评论(0) 推荐(0)
摘要: 国内默认当然不可以下载Unity6,所以合理科!上网,比如我的 所以需要代理的方式 启动下载最新的 新建.bat,内容填写下面 set HTTP_PROXY=http://127.0.0.1:7890 set HTTPS_PROXY=http://127.0.0.1:7890 start "" "C 阅读全文
posted @ 2025-12-30 14:22 stweily 阅读(65) 评论(0) 推荐(0)
摘要: https://zhuanlan.zhihu.com/p/78706246 阅读全文
posted @ 2025-12-13 11:51 stweily 阅读(9) 评论(0) 推荐(0)
摘要: 如题 using System.Runtime.InteropServices; namespace DisplaySetting { [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public struct DEVMOD 阅读全文
posted @ 2025-10-30 15:05 stweily 阅读(8) 评论(0) 推荐(0)
摘要: 使用全局类型获取焦点事件 EventManager.RegisterClassHandler(typeof(TextBox), TextBox.GotFocusEvent, new RoutedEventHandler(TextBox_GotFocus)); EventManager.Registe 阅读全文
posted @ 2025-10-15 17:20 stweily 阅读(25) 评论(0) 推荐(0)
摘要: WPF 容器尺寸行为总结 在 WPF 中,布局容器的尺寸来源可以分为三类: 一类:尺寸主要取决于 父容器的约束 → “父大则大,父小则小” 一类:尺寸主要取决于 子元素的大小 → “子大则大,子小则小” 一类:尺寸基本固定,不跟随父或子变化 📌 常见容器的尺寸行为对比 容器 自己的设置 父容器约束 阅读全文
posted @ 2025-09-17 10:11 stweily 阅读(16) 评论(0) 推荐(0)
摘要: 由于一些原因,我们使用了代理的nuget或是自己私有搭建的nuget。 由于nuget引用的是一些第三方库,万一出事故意恶搞的库。。岂不是很危险。所以nuget对这些有一些基本的行为要求 其中就有一条。这个库的来源来自哪里。。。由于代理或是私有搭建,,那此时就容易出现了它本是github.....里 阅读全文
posted @ 2025-09-11 11:45 stweily 阅读(19) 评论(0) 推荐(0)
摘要: 记录一个Windows上的键盘鼠标模拟库和沟子库 H.InputSimulator RawInput.Sharp 阅读全文
posted @ 2025-09-08 20:08 stweily 阅读(15) 评论(0) 推荐(0)