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

オープン
#201 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
desktop

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
0
フォーク
2
平均マージ
2日 13時間
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TMHSDigital/autoclicker のほかの issue

TMHSDigital/autoclicker の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。