开源 · 免费 · 免安装Open source · Free · Portable

按 Alt+Space,
一个窗口完成
Press Alt+Space.
Type. Done.

轻量、开源的 Windows 启动器,操作方式参照 macOS 上的 Alfred。程序、文件、网页、计算、剪贴板、系统命令,输入几个字母,按 Enter。 A lightweight, keyboard-first launcher for Windows, inspired by Alfred for macOS. Apps, files, web search, calculator, clipboard and system commands — type a few letters and press Enter.

最新版 2026.12.02 · Windows 10 / 11 · 不需要 .NET 或其他运行库 · GPL‑3.0 Latest 2026.12.02 · Windows 10 / 11 · No .NET or other runtime · GPL‑3.0

ALTRun: type to search, open the action panel, convert units and search files
1359 KB下载大小Download size
0需要安装的运行库Runtimes to install
22套内置主题Built-in themes
16000+项自动测试Automated tests
14,158次下载Downloads

为什么选择 ALTRunWhy ALTRun

小巧Tiny

约 2.5 MB, 运行时约占用 30 MB 内存。一个 exe 加少量资源文件, 不需要 .NET、Electron 或其他运行库。 About 2.5 MB, using about 30 MB of memory while running. One exe plus a few resource files — no .NET, Electron or other runtime.

快速响应Instant

输入第一个字符就显示结果;配合 Everything 毫秒级搜索全盘文件,没装时用内置索引。 Results appear as you type. With Everything, whole-disk file search takes milliseconds; otherwise a built-in index is used.

越用越懂你Smart ranking

记住每次的选择,常用的自动排第一;支持单词首字母(vsc → Visual Studio Code)和拼音首字母(wx → 微信,文件也可以:cs → 测试文件.zip;繁体字、生僻字也认得),并高亮匹配的字。 Learns what you pick for each query. Matches word initials (vsc → Visual Studio Code) and pinyin initials for app and file names (traditional and uncommon characters too), and highlights the matched characters.

不只是启动Beyond launching

对话框快速跳转(Quick Switch):打开 / 保存对话框一步跳到 Total Commander、Directory Opus、Arke 或资源管理器里已经打开的文件夹;在任意程序里选中文字、文件或网址,按 Ctrl+Alt+\ 直接操作。 Quick Switch jumps an Open / Save dialog to a folder you already have open in Total Commander, Directory Opus, Arke or Explorer; select text, files or a URL in any program and press Ctrl+Alt+\ to act on it.

多合一All in one

计算与单位换算、网页搜索、浏览器书签、剪贴板历史、文字片段自动展开、系统命令、终端,还有文件夹同步,不用再装一堆小工具。 Calculator with unit conversion, web search, browser bookmarks, clipboard history, snippet expansion, system commands, a terminal and folder sync.

全键盘操作Keyboard first

→ 打开操作面板,F3 直接编辑,Ctrl+1~9 快速打开;也可以双击 Ctrl 呼出。 → for the action panel, F3 to edit in place, Ctrl+1–9 to open; or double-tap Ctrl to show it.

便携与隐私Portable and private

免安装,不需要管理员权限,没有后台服务;设置和数据在 Data\ 文件夹(剪贴板历史默认只存本机),不收集任何数据。 No installer, no admin rights, no background service. Settings and data live in the Data\ folder (clipboard history stays on this PC by default); no telemetry.

一键更新One-key updates

有新版本时搜索窗口里提示,直接下载的版本按 Enter 安装,自动校验 SHA256,设置保留;winget / Scoop 装的按 Enter 会复制升级命令,退出后在终端里运行。 New versions show up in the search window; for a direct download, press Enter to install (SHA256 verified, settings kept). With winget or Scoop, Enter copies the upgrade command to run in a terminal after quitting.

随心定制Customizable

简体中文、繁體中文、English、日本語界面;22 套内置主题,可跟随系统深浅色;主题和设置都是 JSON 文件。 English, Simplified / Traditional Chinese and Japanese interface; 22 built-in themes that can follow the Windows light / dark mode; plain JSON settings.

看看它能做什么See it in action

ALTRun screenshot

22 套内置主题22 built-in themes

也可以用在线主题生成器改字体、字号和颜色,做一套自己的主题,见 主题文档。 Or make your own font, sizes and colors with the online theme builder — see the theme docs.

Light
浅色Light
Dark
深色Dark
Classic
经典Classic
Midnight
午夜Midnight
Frost
霜白Frost
Graphite
石墨Graphite
Ocean
海洋Ocean
Paper
纸张Paper
Lavender
薰衣草Lavender
Rose
玫瑰Rose
Forest
森林Forest
Sunset
日落Sunset
High Contrast
高对比High Contrast
Dark Modern
现代深色Dark Modern
Light Modern
现代浅色Light Modern
Monokai
MonokaiMonokai
One Dark
One DarkOne Dark
Tokyo Night
Tokyo NightTokyo Night
Dracula
DraculaDracula
Catppuccin Mocha
Catppuccin MochaCatppuccin Mocha
Gruvbox Dark
Gruvbox 深色Gruvbox Dark
Solarized Light
Solarized 浅色Solarized Light

脚本库Script library

用脚本给 ALTRun 加功能(类似插件):下载到 Scripts\ 文件夹(偏好设置 → 脚本 → 打开脚本文件夹),输入关键字就能用。每个脚本都是文本文件,用之前可以先看源码;会联网的写明了连到哪里。 Add features to ALTRun with scripts (like plugins): download one into the Scripts\ folder (Preferences → Scripts → Open Scripts Folder) and type its keyword. Each script is a text file — read the source before you use it; the ones that go online say where.

Dark Mode dark

在 Windows 的浅色和深色模式之间切换 (应用和任务栏一起)Switches Windows between light and dark mode (apps and the taskbar together)

  • 不联网No network
  • AutoHotkey v2

下载Download · 源码Source · Gitee 镜像Gitee mirror

Delayed Start delayedstart

登录 Windows 几分钟后再启动 OneDrive 等程序, 让桌面更快可用 (任务计划程序, 不需要管理员权限)Start programs such as OneDrive a few minutes after signing in to Windows, so the desktop is ready sooner (Task Scheduler, no administrator rights)

  • 不联网No network
  • AutoHotkey v2

下载Download · 源码Source · Gitee 镜像Gitee mirror

Environment Variables envvar

实时结果: 名字含有输入文字的环境变量, 回车复制变量值Live results: the environment variables whose name has what you type; Enter copies the value

  • 不联网No network
  • AutoHotkey v2

下载Download · 源码Source · Gitee 镜像Gitee mirror

File Hash hash

计算文件的 MD5、SHA-1 和 SHA-256, 在文本编辑器里显示; 选中文件按 Ctrl+Alt+\ 也能用MD5, SHA-1 and SHA-256 of a file, shown in your text editor; also in the actions for a selected file (Ctrl+Alt+\)

  • 不联网No network
  • PowerShell

下载Download · 源码Source · Gitee 镜像Gitee mirror

Kill Process kill

实时结果: 正在运行的程序和占用的内存, 大的在前; 回车结束所选程序的全部进程Live results: your running programs with their memory, the largest first; Enter ends every process of the chosen program

  • 不联网No network
  • AutoHotkey v2

下载Download · 源码Source · Gitee 镜像Gitee mirror

Media Keys media

实时结果: 播放 / 暂停、下一首、上一首、停止、静音和音量增减, 也就是 ALTRun 以前内置的这几个命令Live results: play / pause, next and previous track, stop, mute and volume up / down, the commands ALTRun had built in before

  • 不联网No network
  • AutoHotkey v2

下载Download · 源码Source · Gitee 镜像Gitee mirror

OCR - screenshot to clipboard ocr

框选屏幕区域, 用在线 OCR 识别文字 (准确率更高), 结果复制到剪贴板; 未配置密钥或在线失败 (断网等) 时自动回退到免费离线的 Windows OCRSelect a screen area and recognize its text with online OCR (better accuracy); result goes to the clipboard. Falls back to free offline Windows OCR if no API key or the online call fails.

  • 需要: 在线 OCR 可选: 设置用户环境变量 VOLC_AK / VOLC_SK (用只授权 OCR 的 IAM 子用户; 截图会上传到火山引擎, 涉密图纸请勿使用). 未配置则用离线 Windows OCR (需 Windows 10 1809+ 和 OCR 语言包).Needs: Optional, for online OCR: user env vars VOLC_AK / VOLC_SK (use an IAM sub-user allowed only for OCR; screenshots are uploaded to Volcengine, so avoid confidential drawings). Without them: offline Windows OCR (Windows 10 1809+ with an OCR language pack).
  • 联网: visual.volcengineapi.comConnects to: visual.volcengineapi.com
  • AutoHotkey v2
  • 作者: By @sfcboy

下载Download · 源码Source · Gitee 镜像Gitee mirror

PT Tools (Rebar / BRC Calculator) pttools

钢筋和钢筋网 (BRC) 面积、所需钢筋根数、计算器; 结果可以复制到 ExcelRebar and mesh (BRC) areas, the number of bars required and a calculator; results copy to Excel

  • 不联网No network
  • AutoHotkey v2

下载Download · 源码Source · Gitee 镜像Gitee mirror

Quick Note note

把一行带日期时间的笔记追加到 Markdown 笔记文件 (默认 "文档\Notes.md", 可以改)Adds a line with the date and time to a Markdown notes file (Documents\Notes.md unless you choose another)

  • 不联网No network
  • AutoHotkey v2

下载Download · 源码Source · Gitee 镜像Gitee mirror

Save Screenshot shot

把剪贴板里当前的图片另存为 PNG 文件; "另存为"对话框默认打开当前资源管理器所在文件夹Save the current clipboard image as a PNG file; Save As opens in the current Explorer folder

  • 不联网No network
  • AutoHotkey v2
  • 作者: By @sfcboy

下载Download · 源码Source · Gitee 镜像Gitee mirror

SPF2M Post-Tensioning Tendon Profile Calculator spf2m

后张预应力束线型: 各支架处的束高, 结果和 SPF2M 程序一致; 表格可以复制到 ExcelPost-tensioning tendon profiles: the tendon height at each support, with the same results as the SPF2M program; the table copies to Excel

  • 不联网No network
  • AutoHotkey v2

下载Download · 源码Source · Gitee 镜像Gitee mirror

Total Commander Commands tc

Total Commander 命令面板: 按名字找 TC 的命令和你自己的命令 (em_), 回车执行A command palette for Total Commander: find its commands and your own (em_) by name, Enter runs them

  • 需要: Total Commander; ALTRun 2026.11.16.4 或更新Needs: Total Commander; ALTRun 2026.11.16.4 or later
  • 不联网No network
  • AutoHotkey v2

下载Download · 源码Source · Gitee 镜像Gitee mirror

Translate fy

边打字边翻译: 中文译成英文, 其他语言译成中文; 用 MyMemory 免费翻译, 设置自己的 DeepL API key 后翻译得更好 (在列表里就能设置)Live translation: Chinese to English, other languages to Chinese; free with MyMemory, better with your own DeepL API key (set it from the list)

  • 需要: 用 MyMemory 不需要什么 (每个网络每天有额度, 设置 MYMEMORY_EMAIL 后更多); 可选: DeepL API key (免费版就够)Needs: Nothing for MyMemory (a daily limit per network, higher with MYMEMORY_EMAIL); optional: a DeepL API key (the free plan is enough)
  • 联网: api.mymemory.translated.net, api-free.deepl.com, api.deepl.comConnects to: api.mymemory.translated.net, api-free.deepl.com, api.deepl.com
  • AutoHotkey v2

下载Download · 源码Source · Gitee 镜像Gitee mirror

Unix Timestamp ts

实时结果: 现在的 Unix 时间戳, 时间戳转成日期 (秒或毫秒), 或日期转成时间戳; 回车复制Live results: Unix time now, a timestamp as a date (seconds or milliseconds), or a date as a timestamp; Enter copies

  • 不联网No network
  • AutoHotkey v2

下载Download · 源码Source · Gitee 镜像Gitee mirror

Who Uses a Port port

查哪个程序占用了某个端口 (netstat, 带进程 ID), 在命令行窗口里显示Which programs use a TCP / UDP port (netstat, with process IDs), in a console window

  • 不联网No network
  • Batch (cmd)

下载Download · 源码Source · Gitee 镜像Gitee mirror

World Clock tz

实时结果: 60 个城市现在的时间、日期和与本地的时差; 回车复制Live results: the time now in 60 cities, with the date and the difference from yours; Enter copies it

  • 不联网No network
  • AutoHotkey v2

下载Download · 源码Source · Gitee 镜像Gitee mirror

“下载”打开的是文本,按 Ctrl+S 保存(或在链接上右键 → 链接另存为)。想自己写,见脚本文档;欢迎投稿到脚本库。 “Download” opens the text: press Ctrl+S to save it (or right-click the link → Save link as). To write your own, see the scripts docs; scripts from other people are welcome in the library.

下载与安装Download and install

直接下载Download

  1. 下载 ALTRun 2026.12.02(1359 KB),解压到任意文件夹 Download ALTRun 2026.12.02 (1359 KB) and unzip it anywhere
  2. 运行 ALTRun.exe,按 Alt+Space Run ALTRun.exe and press Alt+Space
  3. 输入 ? 查看全部语法和快捷键 Type ? for every syntax and shortcut

如果 Windows SmartScreen 提示“Windows 已保护你的电脑”,点 更多信息 → 仍要运行;杀毒软件误报见常见问题。 If Windows SmartScreen says “Windows protected your PC”, click More info → Run anyway; for antivirus warnings see the FAQ.

winget

winget install zhugecaomao.ALTRun

Scoop

scoop bucket add altrun https://github.com/zhugecaomao/ALTRun
scoop install altrun

Code signing: Free code signing provided by SignPath.io, certificate by SignPath Foundation. Code signing policy

最新版本 2026.12.02What's new in 2026.12.02

全拼搜索, 更整齐的偏好设置: 中文名称除了首字母, 也可以用全拼找 (weixin, wxin, w xin 都能找到 微信), 还能按词分开找, zj jia 能找到 中交路建. 偏好设置的每一页都改成了分节排版: 只在另一个选项打开时才有用的选项缩进到它下面, 没打开时变灰; 计算器, 脚本, 一键加日期, 对话框快速跳转和剪贴板历史在页顶有了开关. 网站新增主题生成器, 可以在线编辑主题, 实时预览, 一步导入. 在微信里复制图片不再弹出意外错误, 网络文件夹离线时不再让 ALTRun 卡住约 20 秒, 剪贴板历史很多时保存快了约 5 倍.

VirusTotal: 0 / 69 (报告)

升级

  • 一键升级: 托盘图标 → 检查更新 → 安装更新
  • 用 Scoop 安装的: scoop update altrun
  • 用 winget 安装的: winget upgrade zhugecaomao.ALTRun
  • 系统命令里的媒体和音量命令移到了 Media Keys 脚本 (见 "移除"): 为它们设的热键, 把脚本放进脚本文件夹后照常可用

新增

  • 中文名称可以用全拼找: 每个字打完整拼音或只打前几个字母, 随意混用, 空格忽略, 多音字的每个读音都算, 例如 weixin, wxin, weix, w xin 都能找到 微信, zhangcheng 也能找到 长城; ü 打 v. 不做容错 (win 找不到), 打的字要在名称里挨着. 几个词连不成一串时, 每个词也可以按首字母或名称里任意位置的全拼找 (和 st co 找到 Visual Studio Code 一样), 例如 zj jia 能找到 中交路建, 排在连成一串的结果后面. 范围: 应用, 自定义命令, 脚本和脚本结果, 窗口, 书签, 系统命令, 操作面板和内置文件索引 (Everything 找到的文件仍由 Everything 匹配); 高亮标出打到的字. 详见 Wiki 怎样匹配 (#667)
  • 网站加 主题生成器: 从内置主题或自己的主题文件开始, 改字体, 字号, 尺寸和颜色, 实时预览, 下载主题文件 (#727)
  • 偏好设置 → 外观 → 自定义主题 加 在线编辑...: 用浏览器打开主题生成器并载入选中的主题 (自定义主题载入它的文件内容, 内置主题作为起点); 主题内容放在网址 # 后面, 不发给网站服务器 (#727)
  • 偏好设置 → 外观 → 自定义主题 加 导入主题...: 选一个主题文件 (例如主题生成器下载的), 起个名字, 复制到 Themes 文件夹并在主题列表里选中, 点 确定 生效; 读不了的文件 (JSON 有错误) 当场提示出错的行, 不导入; 同名主题先问要不要覆盖, 和内置主题同名时提示会代替它 (#727)
  • 搜索框右边的 ALTRun 菜单图标可以不显示: 偏好设置 → 搜索窗口 → "在搜索框右边显示菜单图标" (默认显示); 不显示时搜索框伸到右边, 菜单里的偏好设置, 重新载入, 退出在托盘菜单里也有, 也可以在搜索框里输入命令 (#747)
  • 脚本库 新增 Media Keys 脚本 (media): 列出播放 / 暂停, 下一首, 上一首, 停止, 静音 / 取消静音, 音量加 / 减 (每次 10) 七项, 选中按 Enter 执行; 音量的三项显示当前音量, 执行后提示新的音量

改进

  • 偏好设置: 所有页面统一成分节排版, 标签, 勾选框和说明从同一条左边开始, 去掉左列的组标签. 只在另一个选项打开时才有用的选项缩进到它下面, 没打开时变灰: 例如 剪贴板 的 保存位置 / 也记录图片 / 保留图片数, 计算器 的 显示行数和结构参数 (原来一直可改), 文件搜索 的 匹配方式 / 最少字数, 文字片段 的 关键字前缀和不展开的窗口, 文件夹同步 的 搜索关键字, 键盘 的 大写锁定提示 / 在管理员窗口里也生效
  • 偏好设置: 计算器, 脚本, 一键加日期, 对话框快速跳转 (Quick Switch), 剪贴板历史 的页顶加了开关; 在 功能 页上也有的, 是同一个设置, 两边同步. 关掉时下面的设置变灰 (计算器的 "清空..." 和剪贴板的 "立即清空历史" 仍可用). 功能 页上功能关掉时, 它的选项也变灰
  • 偏好设置 → 剪贴板历史: 剪贴板历史在 功能 页关着时, 这一页的设置 (包括热键) 都不起作用, 现在会变灰, 并在热键下面写明原因; "立即清空历史" 仍可使用 (#751)
  • 偏好设置的其它调整: 自定义热键 页上面的列表加了标题; 内容类型 页分 热键 / 内容类型 两节, 测试框的说明和结果放到标签下面; "清除使用统计" 放到表格下面, 和表格左边对齐; 外观 的 "恢复默认位置" 放到 "拖动窗口后记住位置" 下面, 只在保存的位置不是默认位置时可以点; 文件搜索 的 "文件搜索结果数" 放到 "普通结果中也显示文件" 上面; 通用 页去掉 开机自动启动 / 添加到开始菜单 / 自动检查更新 的说明 (细节在 Wiki); 剪贴板 "保存位置" 的 "Data 文件夹" 改名为 "ALTRun Data 文件夹"
  • 剪贴板历史保存更快: 每次复制后只重新转换有变化的条目, 保存大的 JSON 文件时先一次留够空间; 历史有 10000 条时每次保存从约 1 秒降到约 0.2 秒, 1000 条从约 65 毫秒降到约 15 毫秒 (保存时界面卡住的时间相应变短)
  • 后台任务一次占用超过 1 秒后, 重新安装键盘钩子 (和睡眠唤醒后一样), 免得 Windows 移除了钩子导致热键, 片段展开, CapsLock 失效
  • 搜索窗口里在脚本上按 F3 (以及实时结果脚本出错那一行上按 Enter) 编辑脚本, 和在 偏好设置 → 脚本 里双击一样: 用 Windows 为这种文件登记的编辑程序 (右键菜单里的 "编辑"), 没有登记时才用记事本; 以前总是用记事本
  • 脚本库 的 Translate 脚本 (fy) 不用 key 也能翻译: 没有 DeepL key 时用免费的 MyMemory (每个网络每天有额度, 在用户环境变量 MYMEMORY_EMAIL 里写上邮箱能提高), DeepL 本月额度用完时也自动改用它; 想用 DeepL, 输入 fy 选 "设置 DeepL API key" 按回车, 粘贴 key 即可 (先向 DeepL 检查, 再存进用户环境变量, ALTRun 不保存). 有假名的文字按日文处理, 不再当成中文. 不用 key 的想法来自 sfcboy 投稿的 #585, 谢谢
  • 调试日志多记几项, 方便查偶发的问题: 鼠标单击 / 右键 / 拖动结果时列表的选中状态和焦点, 拖出文件时准备和拖放各用了多久, 鼠标左键的状态, 以及对话框不在最前面而没有跳转

修复

  • 在微信等程序里复制图片时, 不再弹出 "ALTRun 遇到意外错误: Can't open clipboard for reading": 复制的程序还占着剪贴板时, 剪贴板历史过一会儿再读 (最多 3 次, 还读不到就不记录这一次), 图片和文字一样; 日志也写明是剪贴板被占用, 不再说成文件夹写不了. 复制, 粘贴, 转换剪贴板文字等命令遇到剪贴板被占用时, 提示 "剪贴板正被其他程序占用, 请稍后再试" (#730)
  • 应用文件夹或文件搜索范围里有网络文件夹 (\\服务器\共享 或映射的网络驱动器) 时, 服务器不在线 (NAS 关机, 离开公司网络) 不再让 ALTRun 卡住约 20 秒: 启动, 监视文件夹和重新扫描时, 网络文件夹最多等 0.5 秒, 不回应就先跳过, 每 30 秒再试一次, 回来后自动重新扫描
  • 搜索窗口: 用鼠标点过某一行结果 (例如第一行的 "发现新版本" 提示) 后, 这一行偶尔变成一条没有文字的浅灰色空白条 (深色主题下很显眼). 结果列表不再保留自己的选中状态 (#744)
  • 对话框跳转: 用地址栏跳转的对话框 (例如企业微信), 按 Alt+D 后等焦点真正进入地址栏再填入文件夹 (最多 1 秒), 不再偶尔把文件夹填进文件名框 (这类对话框会把它当作选中的项目), 对话框停在原文件夹
  • 偏好设置: 按住 ↓ 快速切换页面时, 一页还没建完又切到下一页, 前一页剩下的控件 (例如 脚本 页的 "找到的脚本") 跑到了后一页 (例如 使用统计 页) 上, 原来那页反而少了. 现在建页时来的切换只记下最新的页, 当前页建完后再建并显示它
  • 剪贴板历史: 很长的条目 (超过 4000 字, 单独存成文件) 写到一半失败时 (例如磁盘满), 不再留下截断的文件, 以后读回来少一截; 这次没写成的下次保存时完整写入
  • 剪贴板历史: 别的程序放到剪贴板上的图片, 如果图片头写的尺寸比实际数据大 (格式有问题), 不再照着头去读 (可能读到数据外面), 这张图片不记录
  • 偏好设置 → 自定义命令 / 文字片段 / 网页搜索 → 导出到 CSV: 文件名没写扩展名, 自动补上 .csv 后和已有文件同名时, 先问是否覆盖; 导出先写完整的新文件再替换, 写失败时原来的文件保持不变
  • 在搜索窗口里对脚本按 F3 后, 搜索窗口不再消失一下又出现再消失: 脚本在外部编辑器里编辑, 搜索窗口隐藏后不再重新显示 (和 Ctrl+E 一样)
  • 偏好设置 → 键盘: CapsLock 不切换输入法时, "在管理员窗口里也生效" 下面的说明只有一行, 不再多空一行; 选了切换方式后说明变长, 下面的设置跟着下移
  • 偏好设置 → 脚本: 列表下面选中脚本的说明不再截在第 3 行; 说明长时往下长 (下面的注释跟着下移), 最多到底部按钮上方, 还放不下时鼠标停在上面显示全文

移除

  • 系统命令里的媒体和音量命令 (MediaPlayPause MediaNext MediaPrev MediaStop Mute VolumeUp VolumeDown): 很少用到, 也不属于搜索和启动, 移到上面的 Media Keys 脚本. 为这些命令设的自定义热键, 把脚本放进脚本文件夹后照常可用 (运行脚本里同样的操作); 没有脚本时提示命令去了哪里, 偏好设置 → 热键里显示为红色. 置顶和最近使用里的这几项不再列出
  • 偏好设置 → 外观 的 复制为自定义主题...: 改用 在线编辑... (从任何主题开始改, 有实时预览), 改好后 导入主题...; 想手写主题文件见 Wiki 主题页. 用它生成的主题文件照常能用

Full pinyin search, and a tidier Preferences window: Chinese names can be found by full pinyin as well as by initials (weixin, wxin and w xin all find 微信), also word by word, so zj jia finds 中交路建. Every Preferences page is now laid out in sections: an option that only matters when another one is on is indented under it and grayed out while it is off, and Calculator, Scripts, Date Stamp, Quick Switch and Clipboard History have their on / off check box at the top of their page. Themes can be edited online with a live preview in the new Theme Builder and imported in one step. Copying an image in WeChat no longer shows an unexpected-error message, an offline network folder no longer freezes ALTRun for about 20 seconds, and saving a large clipboard history is about five times faster.

VirusTotal: 0 / 69 (report)

Details

Upgrade

  • One-click upgrade: tray icon → Check for Updates → Install Update
  • Installed with Scoop: scoop update altrun
  • Installed with winget: winget upgrade zhugecaomao.ALTRun
  • The media and volume system commands moved to the Media Keys script (see Removed): hotkeys set for them keep working once the script is in the scripts folder

New

  • Chinese names can be found by full pinyin: type each character's full pinyin or only its first letters, mixed as you like; spaces are ignored and every reading of a character with several counts, e.g. weixin, wxin, weix and w xin all find 微信, and zhangcheng finds 长城; type ü as v. No typo tolerance (win finds nothing), and the characters typed must be next to each other in the name. When the words don't join into one run, each word can also match by its initials or by full pinyin anywhere in the name (as st co finds Visual Studio Code): zj jia finds 中交路建, listed after the results that match as one run. Applies to apps, custom commands, scripts and their results, windows, bookmarks, system commands, the action panel and the built-in file index (files found by Everything are still matched by Everything); the typed characters are highlighted. See the Wiki: How matching works (#667)
  • Theme Builder on the website: start from a built-in theme or your own theme file, change fonts, sizes and colors with a live preview, and download the theme file (#727)
  • Preferences → Appearance → Custom theme: Edit Online... opens the selected theme in the Theme Builder (a custom theme with its file's content, a built-in one as a starting point); the theme goes after # in the address and is not sent to the website's server (#727)
  • Preferences → Appearance → Custom theme: Import Theme... picks a theme file (e.g. one downloaded from the Theme Builder), asks for a name, copies it into the Themes folder and selects it, applied with OK. A file that can't be read (a JSON error) is reported with the line at fault and not imported; a theme with the same name asks before it is replaced, and one named like a built-in theme says it will take its place (#727)
  • The ALTRun menu icon right of the search box can be hidden: Preferences → Search Window → "Show the menu icon right of the search box" (on by default). Hidden, the search box reaches the right edge; Preferences, Reload and Exit are in the tray menu too, or can be typed in the search box (#747)
  • Script library: new Media Keys script (media): lists Play / Pause, Next, Previous, Stop, Mute / Unmute and Volume Up / Down (by 10), run with Enter; the volume items show the current volume, and a notice shows the new one

Improvements

  • Preferences: every page is laid out in sections, with labels, check boxes and descriptions starting from the same left edge and without group labels in the left column. An option that only matters when another one is on is indented under it and grayed out while it is off: e.g. Clipboard's Save location / Also record images / Images kept, Calculator's Lines shown and the structural parameters (always editable before), File Search's Match / Minimum length, Snippets' Keyword prefix and excluded windows, Folder Sync's Search keyword, and Keyboard's caps lock notice / "Also in windows running as administrator"
  • Preferences: Calculator, Scripts, Date Stamp, Quick Switch and Clipboard History have an on / off check box at the top of their page; for the features on the Features page it is the same setting, and both stay in step. Turned off, the settings below are grayed out (Calculator's "Clear..." and Clipboard's "Clear History Now" still work). On the Features page, a feature's own options gray out while it is off
  • Preferences → Clipboard History: while clipboard history is off on the Features page, this page's settings (the hotkey too) have no effect; they are grayed out now, with the reason under the hotkey. "Clear History Now" still works (#751)
  • Preferences, smaller changes: the list on Custom Hotkeys has a heading; Content Types has Hotkey and Content Types sections, and the test box's description and result sit under the label; "Clear Usage Statistics" sits under the table, aligned with it; Appearance's "Reset Window Position" sits under "Remember the position after dragging the window" and can only be clicked when a saved position differs from the default; File Search's "File search results" moved above "Also show matching files and folders in normal results"; General drops the descriptions of Launch at login / Add to Start menu / Check for updates (details in the Wiki); Clipboard's save location "Data folder" is now "ALTRun Data folder"
  • Clipboard history saves faster: after each copy only the entries that changed are converted again, and the large JSON file gets its full size reserved at once. With 10,000 entries a save takes about 0.2 s instead of about 1 s, with 1,000 about 15 ms instead of 65 ms (the window is held up that much less)
  • When a background task holds ALTRun for more than 1 second, the keyboard hook is installed again (as after sleep), so that Windows removing it can't leave hotkeys, snippet expansion and Caps Lock not working
  • F3 on a script in the search window (and Enter on a live result script's error row) edits it as a double-click in Preferences → Scripts does: with the editor Windows has registered for the file type ("Edit" in the right-click menu), Notepad only when there is none; it was always Notepad before
  • Script library: the Translate script (fy) works without a key: without a DeepL key it uses the free MyMemory (a daily quota per network, raised by putting an email address in the user environment variable MYMEMORY_EMAIL), and also when DeepL's monthly quota is used up. To use DeepL, type fy, choose "Set a DeepL API key", press Enter and paste the key (checked with DeepL first, then stored in a user environment variable; ALTRun doesn't keep it). Text with kana is taken as Japanese, no longer as Chinese. The idea of working without a key comes from #585 by sfcboy, thanks
  • The debug log records a few more things for rare problems: the list's selection and focus when a result is clicked, right-clicked or dragged, how long preparing and dropping a dragged-out file took and the left mouse button's state, and a dialog jump skipped because the dialog isn't in front

Fixes

  • Copying an image in WeChat and similar programs no longer shows "ALTRun ran into an unexpected error" (Can't open clipboard for reading): while the copying program still holds the clipboard, clipboard history reads it again a little later (at most 3 tries, then this copy isn't recorded), for images as for text, and the log says the clipboard was busy instead of blaming the folder. Copy, paste and the clipboard text commands say "Another program is using the clipboard. Try again in a moment." (#730)
  • A network folder (\\server\share or a mapped network drive) among the app folders or file search folders no longer freezes ALTRun for about 20 seconds while its server is offline (a NAS switched off, away from the office network): at start-up, when watching folders and when rescanning, a network folder gets at most 0.5 s; one that doesn't answer is skipped and tried again every 30 s, and rescanned once it is back
  • Search window: after a result row was clicked (e.g. the "New version" row at the top), the row now and then turned into an empty light gray bar (very visible in dark themes). The result list no longer keeps a selection of its own (#744)
  • Dialog jump: dialogs that jump through their address bar (WeCom, for one) wait after Alt+D until the focus is really in the address bar (at most 1 s) before filling in the folder; the folder no longer lands in the file name box now and then (which these dialogs take as the item chosen) with the dialog staying where it was
  • Preferences: holding ↓ to switch pages quickly could switch away from a page still being built, so its remaining controls (e.g. Scripts' "Scripts found") landed on the next page (e.g. Usage) and were missing from their own. A switch that comes during a build now only notes the newest page, which is built and shown once the current one is done
  • Clipboard history: a very long entry (over 4,000 characters, kept in a file of its own) whose writing failed halfway (a full disk, say) no longer leaves a cut-off file that is read back short later; it is written whole at the next save
  • Clipboard history: an image another program put on the clipboard whose header claims a larger size than its data (a malformed image) is no longer read as the header says (which could read past the data); that image isn't recorded
  • Preferences → Custom Commands / Snippets / Web Search → Export to CSV: when .csv is added to a name typed without an extension and a file of that name exists, it asks before replacing it; the export writes the whole new file first, so a failed write leaves the old file as it was
  • F3 on a script in the search window no longer makes the window disappear, reappear and disappear again: the script is edited in the outside editor and the search window stays hidden (as with Ctrl+E)
  • Preferences → Keyboard: while Caps Lock doesn't switch the input method, the description under "Also in windows running as administrator" takes one line, without an empty line under it; with a switch mode chosen it grows and the settings below move down
  • Preferences → Scripts: the description of the selected script under the list is no longer cut off at the third line; a long one grows down (the note below moves with it) up to the buttons at the bottom, and when it still doesn't fit, hovering over it shows the whole text

Removed

  • The media and volume system commands (MediaPlayPause MediaNext MediaPrev MediaStop Mute VolumeUp VolumeDown): rarely used and not about searching and launching, they moved to the Media Keys script above. Custom hotkeys set for them keep working once the script is in the scripts folder (the script's same action runs); without it a notice says where the command went, and Preferences → Hotkeys shows them in red. These items are no longer listed among the pinned and recent items
  • Preferences → Appearance → Copy as Custom Theme...: use Edit Online... instead (start from any theme, with a live preview), then Import Theme...; for writing a theme file by hand see the Themes page of the Wiki. Theme files made with it still work

完整更新日志 →Full changelog →