Commit Graph
12 Commits
Author SHA1 Message Date
mmintel 46d304b92d Fokus: der Client bleibt nicht mehr dauerhaft vorn
Der Client reisst sein Fenster bei JEDER Aktivierung nach vorn (live gemessen 20x in 20 s) - auch
bei der Fensterabfrage, die die Sicht im Takt macht. Wer daneben arbeitet, verliert dauernd den
Fokus. Es gab den Schalter POKERFREAK_FOKUS_ZURUECK dafuer, aber er war AUS und griff nur nach
Klicks.

Jetzt: FOKUS_ZURUECK steht in hand/click.py und ist per Vorgabe AN (POKERFREAK_FOKUS_ZURUECK=0
schaltet ab), hand/act.py folgt dem Flag, und hand/fenster.tischfenster holt die vorher vordere App
auch nach einer Fensterabfrage zurueck. `sofort=True` (kurz vor einem Klick) laesst sie vorn - der
Klick muss landen.

Nebenbei gefunden: click.py importiert `os as _os`, mein erster Entwurf schrieb `os.environ` - 14
Spezifikationen fielen ueber den Import.
2026-10-31 16:14:40 +01:00
mmintel 4f1812398d Fokus: Ursache war unser Sekundentakt - Fensterfrist 2 s (einstellbar), Fokus-Rueckgabe als Schalter
Meine erste Messung war falsch (der Laeufer lief noch). Richtig ist: JEDE System-Events-
Fensterabfrage holt den Client nach vorn, und die Sicht fragt im Sekundentakt ab - mit dem 0,5-s-
Cache kam jeder Aufruf durch, also stand der Tisch permanent vorn. Jetzt 2 s Frist
(POKERFREAK_FENSTER_FRIST) fuer Ansicht/Fenster, waehrend der Klickpfad weiter sofort liest.
Dazu POKERFREAK_FOKUS_ZURUECK=1: nach unserem Klick kommt die vorher vordere App zurueck.
2026-10-30 21:58:03 +01:00
mmintel 7c3fb508ed Sitznummern: alle sechs gemessen (ABGELEITET geleert) und Spezifikation angepasst - er setzt sich auf 2 und 4, ohne an verworfenen Stellen zu haengen 2026-10-30 15:13:42 +01:00
mmintel 41180ae0e7 Client-Code gelesen: K-Poker vollstaendig gebaut (Schluessel, Panel, Fold-Bestaetigung), Tisch-Optionspanel mit Sitout/RIT/Straddle/Offload 2026-10-30 13:54:58 +01:00
mmintelandClaude Opus 5.5 56265f343d Not-Aus heisst keine Eingabe mehr; offene Tische je Raum
Live 30.10.: ESC at 11:03:09 set all stop files, yet the runner clicked
"max" and "buyin" at 11:03:12 - stellen_klicken checked only before a
sequence, the mouse path never, and cleanup clicked sitout/cross
"trotz_stopp". hand/notaus.py is now the one source for the stop files
(act, click, stopp); click.click checks before start, on every movement
step and before pressing (KlickNotAus), pid_klick too, sequences check
before each click, trotz_stopp no longer overrides Not-Aus, dialog.esc
sends no key and the live pointer stops. The runner logs "nicht geklickt
(Not-Aus)" instead of a sitout it did not do. The header counted every
window of a table process (table + dialog = 2); it now counts rooms from
the process list. Tests get their own stop folder (POKERFREAK_STOPP_ORDNER)
so they never see or touch the machine's Not-Aus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 11:20:36 +01:00
mmintelandClaude Opus 5.5 bbadd2b2f3 Erst schauen, dann klicken: aktiver Reiter, offene Tische, Klick nur im Fenster; Tests ohne echten Client
Live 30.10. the bot clicked the Practice tab it was already on and the
user saw clicks beside the window. Lobby: read the active tab (.active-tab,
measured) and click only if needed, then verify it switched; never Join a
table whose window is open (fill and self-heal). A real mouse click is only
sent when the point and its scattered end lie inside the target window
(KlickAusserhalb, a FensterNichtVorn), and not at all without a lobby
window. Two mcp_server_spec tests patched the wrong name and clicked the
real lobby with the real mouse whenever CoinPoker ran - they now patch
lobby_adapter and demand an opened table; tests/lauf.py blocks the real
debug port for every spec.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 11:01:09 +01:00
mmintel c66be5f98a Auftrag K-Poker und Turnier: Tasten statt Klickstellen (kpokerBetKey), Turnierfelder liegen im Log, Modus in der Oberflaeche 2026-10-30 01:35:03 +01:00
mmintel 505ff7ac54 Gelesen: Tisch-Aktionen liegen in der Spiel-UI, die Pipe ist Zustand (Befehle nur QuitTable/ReplaceTable) - Weg ohne Maus ist die Tastatur 2026-10-29 23:49:11 +01:00
mmintelandClaude Opus 5.5 2a6c7a9443 Maus wie eine Hand: gekrümmter Weg, gestreuter Treffpunkt, Halten
hand/maus.py plant den Klick als reine, geseedete Funktionen: Fitts-Dauer,
Bezier-Weg mit Minimum-Jerk-Tempo, Abtastung 6-14 ms mit Zittern, bei
langen Wegen manchmal Überschuss und Korrektur, Verweilen und 45-180 ms
Halten. hand/click.py spielt den Plan vom aktuellen Zeiger aus ab;
act.py gibt die halbe Knopfgröße mit. tests/maus_spec.py: 10 Tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 00:26:16 +01:00
mmintel 3aa936e5b3 Klick global statt an den Prozess: Chrome nahm nichts an
Ein Klick an den Prozess (CGEventPostToPid) erreicht den Unity-Tisch, einen
Chrome-Klon überhaupt nicht - belegt mit zwei Mithörern in der Seite: kein
Ereignis kam an. Ein globaler Klick erreicht beide, trifft aber nur, was oben
liegt: hand/click.nach_vorn hebt das Zielfenster an und holt die App nach vorn.

Dazu im Kettentest: die Uhr eines Zuges ist --clock plus die 30 s Zusatzzeit aus
der Aufnahme (genau wie tests/lagen_spec.py rechnet), und der Buy-in wird je
Tisch bestaetigt, bevor der naechste drankommt - sonst bleibt der Dialog offen.
2026-10-28 19:55:18 +01:00
mmintel a53a13bffe Vorlage fuer den Klon aus der App ausgelesen (DOM, Logzeilen, Bilder) 2026-10-28 15:10:36 +01:00
mmintel 86d00e9d72 Hülle: Zustand, Entscheiden, Klicken, Denkzeit, Archiv 2026-10-28 13:53:39 +01:00