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