feat: wait-for-window command; add click guideline to SKILL.md
This commit is contained in:
parent
7ddaf5ddfe
commit
e00270550d
2 changed files with 42 additions and 3 deletions
|
|
@ -80,9 +80,20 @@ python $SKILL_DIR/remote.py label "Moritz PC" "Neues Label"
|
|||
4. `exec` / `click` / `type` → Aktion ausführen
|
||||
5. `screenshot` → Ergebnis prüfen
|
||||
|
||||
## Wenn etwas geklickt werden muss das ich nicht finde
|
||||
# Warten bis ein Fenster erscheint (z.B. nach Programmstart)
|
||||
python $SKILL_DIR/remote.py wait-for-window "Moritz PC" "notepad" --timeout 10
|
||||
```
|
||||
|
||||
## ⚠️ Klick-Regel (wichtig!)
|
||||
|
||||
**Niemals blind klicken.** Pixel-Koordinaten aus Screenshots sind unzuverlässig.
|
||||
|
||||
Wenn ich auf einen Button oder UI-Element klicken muss:
|
||||
1. Erst `prompt` benutzen um Moritz zu bitten es selbst zu klicken
|
||||
2. Dann weitermachen sobald er OK drückt
|
||||
|
||||
```bash
|
||||
python $SKILL_DIR/remote.py prompt "Moritz PC" "Bitte klicke auf [X], dann drücke OK"
|
||||
python $SKILL_DIR/remote.py prompt "Moritz PC" "Bitte klicke auf [Speichern], dann OK drücken"
|
||||
```
|
||||
→ Warte auf ACK, dann weitermachen.
|
||||
|
||||
Ausnahme: wenn ich die exakten Koordinaten eines Elements kenne (z.B. durch wiederholte Nutzung desselben UIs).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue