Wait step that clicks an image can pause a run with Pause when unfocused

Đang mở
#201 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
desktop

Hướng nghiên cứu

Start in autoclicker/core/click_engine.py, reading _windows_under_steps to see how the allowed windows are built from click and hold points, then _perform_sequence to find where a wait-image step clicks its match. The issue suggests adding the root window under the clicked point to _step_hwnds for the rest of the run. Done means a test like TestSequenceFocus.test_any_step_window_counts_as_in_front passes, where the clicked image sits in a window no step point covers and the run keeps going.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug priority: low

Summary

With Pause when unfocused on, a sequence's allowed windows are the ones under its click and hold points. A wait_image step with "click the image" set clicks wherever the image is found, so a window that appears only there is not in that set. If that click brings it to the front, the run pauses at the next step.

Where

  • autoclicker/core/click_engine.py (_windows_under_steps, _perform_sequence)

Steps to reproduce

  1. Sequence: click a button in window A that opens window B, then a wait-for-image step on a button in B with click on, then another step.
  2. Turn on Pause when unfocused and start.
  3. After the image click, B is in front and the run pauses ("waiting for the target window to be in front").

Suggested fix

After a wait step clicks its match, add the root window under that point (if it isn't ours) to _step_hwnds for the rest of the run, the same way windows under step points are added at Start.

Acceptance criteria

  • A test like TestSequenceFocus.test_any_step_window_counts_as_in_front where the clicked image is in a window no step point covers, and the run keeps going

Related: #119

Ngôn ngữ chính
Python
Star
0
Fork
2
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TMHSDigital/autoclicker

Tất cả issue của TMHSDigital/autoclicker

Issue tương tự

Thêm issue về Python

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.