Alien-AV / Alien-AV/macro_record

Ignore user input keys pressed while event is playing

未关闭
#32 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C#
星标
6
派生
3
PR 合并指标
30 天内没有已合并 PR

描述

#### Replication
1. Record a long text writing event (make sure to include letters like 's').
2. Play the event on a notepad or smth that has a ctrl+s option.
3. While event is playing, try to abort it with Ctrl+R

#### Result
The ctrl+s (save as) option will be invoked from Notepad - we dont want it.

#### Fix suggestion
1. Add an bool isEventPlaying = false
2. Set to true on PlayEvents() ingress
3. Set to false on StopEvent() + AbortEvent()
4. Using [BlockInputAPI](https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-blockinput) if flag is true and block the input unless its the StopKey, and then just call AbortEvent() without actually performing the ctrl stoke (for example).

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。