Skip to content

ProcessSH v1.0.1

Choose a tag to compare

@CaoHaoran-Dev CaoHaoran-Dev released this 03 Oct 02:15
· 1 commit to main since this release

What's Changed

Fixed

  • Global Hotkey – Replaced the low-level keyboard hook with Win32 RegisterHotKey, which is no longer silently removed by Windows when the UI thread is busy
  • Default Hotkey – Changed from Ctrl+Win+R to Ctrl+Alt+R, since Windows reserves most Win combinations and RegisterHotKey cannot reliably capture them
  • Custom Hotkey – Recording a new hotkey in Settings now takes effect immediately; the previous and new hotkeys no longer go stale
  • Window Position – The window no longer jumps back to the bottom-left corner when output grows; it keeps the bottom edge fixed and expands upward
  • Localization on Startup – The UI no longer falls back to keys like main.placeholder when the saved language equals the default; localization is now initialized explicitly
  • Settings / About Titles – Window titles now follow the current language
  • Autocomplete – Selecting a suggestion twice no longer inserts ProcessSH.Models.Suggestion

Changed

  • Single Main Window – The main window is now a singleton; closing it hides the window instead of exiting. Quit via Tray → Quit
  • Tray Menu – Removed "New Window"; auxiliary windows (Settings, About) are now limited to one instance each
  • Default Hotkey – Ctrl+Alt+R (previously Ctrl+Win+R)
  • About Version – Now read from the assembly, so it follows the project version automatically

Build

  • Added build.ps1 / build.bat for one-click build
  • Two installers are now produced:
    • ProcessSH-Setup-1.0.1-self-contained.exe — includes the runtime
    • ProcessSH-Setup-1.0.1-framework-dependent.exe — requires the runtime
  • Publish output uses RID paths (win-x64 / win-arm64)
  • Inno Setup path is auto-detected, with a file picker fallback

Note

  • If PowerShell 7 is not installed, the installer will offer to open Microsoft Store.
  • For the framework-dependent installer, install the Windows App SDK Runtime first.

变更内容

修复

  • 全局快捷键 —— 用 Win32 RegisterHotKey 替换低级键盘钩子,不再因 UI 线程繁忙被 Windows 静默移除
  • 默认快捷键 —— 从 Ctrl+Win+R 改为 Ctrl+Alt+R,因为 Windows 保留了大量 Win 组合键,RegisterHotKey 无法可靠捕捉
  • 自定义快捷键 —— 在设置中录制新快捷键后立即生效,新旧快捷键不再失效
  • 窗口位置 —— 输出变长时窗口不再跳回左下角,改为底部固定、向上扩展
  • 启动本地化 —— 保存语言与默认值相同时,界面不再回退为 main.placeholder 这类 key,现在会显式初始化
  • 设置 / 关于标题 —— 窗口标题跟随当前语言
  • 自动补全 —— 连按两次不再插入 ProcessSH.Models.Suggestion

变更

  • 单一主窗口 —— 主窗口变为单例,关闭即隐藏而非退出。退出请用 托盘 → 退出
  • 托盘菜单 —— 移除“新建窗口”;设置、关于窗口各限一个实例
  • 默认快捷键 —— Ctrl+Alt+R(原 Ctrl+Win+R)
  • 关于页版本 —— 改为从程序集读取,自动跟随项目版本

构建

  • 新增 build.ps1 / build.bat 一键构建
  • 现在产出两个安装包:
    • ProcessSH-Setup-1.0.1-self-contained.exe —— 内建运行时
    • ProcessSH-Setup-1.0.1-framework-dependent.exe —— 需另行安装运行时
  • 发布目录使用 RID 路径(win-x64 / win-arm64)
  • Inno Setup 路径自动探测,找不到时弹出文件选择对话框

说明

  • 如果尚未安装 PowerShell 7,安装程序会询问是否打开 Microsoft Store。
  • 若使用框架依赖版,请先安装 Windows App SDK 运行时。