Projects
saMacros
Paid project · 3 posts
Overview
Samera2022
/
saMacros
Waiting for api.github.com...
00K
0K
0K
Waiting...

saMacros — a scriptable desktop automation platform

What it is#

saMacros is the successor to MouseMacros, rebuilt from scratch. It started as a recorder: capture clicks and keys, play them back. Version 3.0 makes a recording the starting point rather than the whole tool.

Everything runs locally. No account, no cloud service, no JVM.

What it does#

Records and replays. Captures mouse movement, clicks, wheel and keyboard events, then plays them back with timing you control down to the millisecond.

Builds flows visually. A block editor assembles automation without code: sequences, if / else, while, repeat, variables, wait until, sub-flows, break / continue, comments. The layout follows the logic, so a flow reads the way it runs.

Scripts in JavaScript when you need it. The visual editor has a ceiling; JavaScript does not. The API reads pixel colors, the cursor position and virtual screen bounds, types text, fires notifications, and listens for application events, so a script can respond to what is on screen rather than replaying a fixed tape.

Reads the screen. Native sensors expose screen and window state to both the block editor and scripts. A macro can branch on what it sees instead of running blind.

Stays out of the way until you call it. Global hotkeys, pause and resume mid-run, and a tray icon. Every hotkey is remappable.

Speaks seven languages. English, Simplified Chinese, Japanese, Korean, Russian, Spanish and French, loaded from JSON language packs.

Takes plugins. Plugins declare hard or soft dependencies, and a whitelist controls what a script may do.

How it compares#

Macro tools fall into two camps. Free recorders are simple, usually a click loop and little else. The capable tools either make you learn a scripting language before anything useful happens, or keep the good parts behind a subscription.

saMacros is built to sit between them.

Simple recordersScript-only toolssaMacros
Getting startedRecord, then playWrite code firstRecord, then play
Complex logicNot supportedSupported, steep curveBlocks or JavaScript
Screen awarenessRareManualBuilt-in sensors
PriceFree, limitedSubscriptionOne-time activation
RuntimeVariesOften heavyOne native executable

Against the tools you are most likely to compare it with:

  • TinyTask, GS Auto Clicker, OP Auto Clicker are small, free, and good at a pure click loop. They stop where saMacros starts: no conditions, no variables, no branching, no scripting.
  • AutoHotkey is powerful, free, and the reference point for scripting-based automation. It is a programming language, though, so there is no visual editor and screen reading means writing ImageSearch and PixelGetColor calls by hand.
  • Commercial macro recorders are polished and often good, but usually subscription-licensed, closed, and heavier than a single executable.
  • Game macro tools are frequently ad-supported or bundled, with the trust problems of a third-party download site.

The goal is that a beginner records a working macro in under a minute, and a power user grows that same macro into branching, screen-aware, event-driven logic without switching tools.

Activation#

Paid licensing runs through a separate Cloudflare deployment, not only inside the app:

  • Frontend: an activation page where you enter the machine code and receive a code
  • Backend: a Pages Function that signs the activation with RSA-SHA256
  • Storage: Cloudflare KV keyed by order, which prevents replay by construction

Codes run 1M / 3M / 6M / 12M / lifetime, each bound to one machine code.

Stack#

  • Language: Rust workspace, GUI in eframe + egui
  • Scripting: rquickjs (QuickJS)
  • Input: direct Win32 calls
  • Release: cargo build --release produces a single saMacros.exe
  • i18n: JSON language packs
Samera2022
/
saMacros
Waiting for api.github.com...
00K
0K
0K
Waiting...

saMacros — 可脚本化的桌面自动化平台

它是什么#

saMacros 是 MouseMacros 的继任者,整个推倒重写。它最初只是一个宏录制器:录制点击与按键,然后回放。到了 3.0,录制只是起点,而不是工具的全部。

所有功能都在本地运行。不需要账号,不依赖云端服务,也不需要 JVM。

它能做什么#

录制与回放。 捕获鼠标移动、点击、滚轮和键盘事件,再以你掌控的毫秒级时序回放。

可视化搭建流程。 积木块编辑器让你不写代码就能组装自动化:顺序组、如果 / 否则、当条件成立时循环、重复、变量、等待条件、调用子流程、跳出 / 继续、注释。版式跟着逻辑走,所以流程读起来是什么样,跑起来就是什么样。

需要时写 JavaScript。 可视化编辑器有上限,JavaScript 没有。API 能读取像素颜色、光标位置和虚拟屏幕范围,输入文本、弹出通知,还能监听应用事件——脚本可以响应屏幕上的实际情况,而不是回放一段固定磁带。

看得懂屏幕。 原生传感器把屏幕与窗口状态暴露给积木块编辑器和脚本。宏可以依据看到的内容分支,而不是闭着眼跑。

平时不打扰你。 全局热键、运行中暂停与恢复、系统托盘图标。每个热键都能重映射。

会说七种语言。 简体中文、English、日本語、한국어、Русский、Español、Français,由 JSON 语言包加载。

支持插件。 插件可以声明硬依赖或软依赖,白名单控制脚本允许做什么。

它和其他工具差在哪#

鼠标宏工具分成两类。免费录制器很简单,往往就是一个连点循环,别的没有。而能力强的工具,要么逼你先学会一门脚本语言才能做点有用的事,要么把好用的部分留在订阅之后。

saMacros 就是为这两者之间准备的。

简单录制器纯脚本工具saMacros
上手录制、播放先写代码录制、播放
复杂逻辑不支持支持,门槛高积木块或 JavaScript
屏幕感知少见需手动实现内置传感器
收费免费但受限订阅一次性激活
运行时参差不齐常常较重单个原生可执行文件

具体到你最可能拿来比较的几款:

  • TinyTask、GS Auto Clicker、OP Auto Clicker 体积小、免费,做纯连点确实称职。它们止步的地方,正是 saMacros 的起点:没有条件、没有变量、没有分支、没有脚本。
  • AutoHotkey 强大、免费,是脚本化自动化的标杆。但它本身就是一门编程语言,没有可视化编辑器,想要读屏就得手写 ImageSearch、PixelGetColor。
  • 商业宏录制软件 打磨精良、往往确实好用,但多为订阅制、闭源,也比单个可执行文件重得多。
  • 游戏宏工具 常带广告或捆绑,还要承担第三方下载站的信任风险。

我们的目标是:新手能在一分钟内录出一个能用的宏,而进阶用户能把同一个宏长成带分支、带屏幕感知、由事件驱动的逻辑,全程不必换工具。

激活#

付费授权走一套独立的 Cloudflare 部署,而不是只在应用内部校验:

  • 前端:激活页,输入机器码并领取激活码
  • 后端:Pages Function,用 RSA-SHA256 签名
  • 存储:Cloudflare KV,以订单为键,天然防重放

激活码分 1M / 3M / 6M / 12M / 永久,每个绑定一台机器码。

技术栈#

  • 语言:Rust workspace,GUI 使用 eframe + egui
  • 脚本:rquickjs (QuickJS)
  • 输入:直接调用 Win32
  • 发布:cargo build --release 产出单个 saMacros.exe
  • 国际化:JSON 语言包