Alien-AV / Alien-AV/macro_record

Ignore user input keys pressed while event is playing

オープン
#32 コメント 2 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。