Repository navigation
Conversation
Make recorded timestamp gaps, simple-click intervals and configured holds stop-responsive. Release paired mouse/key presses when replay is cancelled mid-sequence; block a new playback while the previous worker is still exiting. Cover manual stop and auto-stop at real timing boundaries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
第七批:转向 AutoClicker-Pro,修复真实用户的停止/紧急中断风险
这是 独立于 Cardfront 的 Draft PR,基于本仓库
main,不自动合并。实际工程证据
审查
core/engine.py的两条生产执行链后发现:time.sleep(delay)。当相邻动作相隔 10 秒甚至更久,用户即使按停止,回放工作线程也要等睡眠结束才能退出。press和release依赖后续时间轴。停止发生在二者之间时,程序可能留下系统仍认为按住的鼠标键或键盘键。这些影响真实使用安全性,优先级高于无依据地删掉单元测试。
修复边界
release;用户中断或自动停止时,在finally补发释放(含鼠标组合键修饰键)。验证
在已有
tests/test_engine.py增加 5 个针对性测试,覆盖:本地:
python -m compileall -q core tests与git diff --check通过。注意:Linux 本地没有 pynput/Windows 桌面,不能把以上结果当作真实 Windows GUI/打包验收。仓库正式
build-windowsCI 将在 Windows runner 上执行完整 unittest + PyInstaller 打包;未完成前保持 Draft。