Alien-AV / Alien-AV/macro_record

Ignore user input keys pressed while event is playing

Đang mở
#32 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
6
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

#### 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).

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.