feat: wait-for-window command; add click guideline to SKILL.md

This commit is contained in:
Helios Agent 2026-03-03 16:12:32 +01:00
parent 7ddaf5ddfe
commit e00270550d
No known key found for this signature in database
GPG key ID: C8259547CD8309B5
2 changed files with 42 additions and 3 deletions

View file

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