hle: VICTORY_HIDDEN_WINDOW keeps the title's window off the screens for unattended runs #31

Manually merged
github merged 1 commit from gh-pr/31/head into gh-pr/31/base 2026-11-26 03:41:40 +00:00
Owner

@⁠martindevbr on GitHub · 2026-11-25 17:15 UTC · original
martindevbr:pr/hidden-window → main · +21 −0 · 1 files · 1 commits · merged 2026-11-25 19:56 UTC

O que faz / What it does

Com VICTORY_HIDDEN_WINDOW=1, a janela de nível superior que o título cria fica à direita da área de trabalho virtual (fora de todas as telas), com WS_EX_TOOLWINDOW (fora da barra de tarefas) e WS_EX_NOACTIVATE (nunca pega o foco). Desligado por padrão; janelas filhas não mudam.

With VICTORY_HIDDEN_WINDOW=1, the title's top-level window is placed right of the virtual desktop (off every screen), with WS_EX_TOOLWINDOW (out of the taskbar) and WS_EX_NOACTIVATE (never takes focus). Off unless set; child windows are left alone.

Por quê / Why

Para rodar testes sem supervisão numa máquina em uso: a janela continua visível para o sistema, então a swap chain apresenta normalmente e as capturas (VICTORY_CAPTURE, VICTORY_CAPTURE_WORLD) continuam funcionando, junto com VICTORY_KEYS e o frame log — sem a janela cobrir a área de trabalho nem roubar o teclado.

For unattended test runs on a machine in use: the window stays visible to the system, so the swap chain presents as usual and frame captures keep working, together with VICTORY_KEYS and the frame log, without covering the desktop or stealing keyboard focus.

Testado / Tested

Dezenas de rodadas de 5–10 min no mundo 3D (RTX 3060 12 GB, Windows 11): janela fora da tela, sem foco, quadros capturados normalmente, frame log igual ao das rodadas com janela visível. cargo test -p victory-hle lifecycle passa.

Dozens of 5–10 min runs into the 3D world (RTX 3060 12 GB, Windows 11): window off-screen and unfocused, frames captured as usual. cargo test -p victory-hle lifecycle passes.

**@⁠martindevbr** on GitHub · 2026-11-25 17:15 UTC · [original](https://github.com/uiliannn/VItoriaBr/pull/31) `martindevbr:pr/hidden-window` → `main` · +21 −0 · 1 files · 1 commits · merged 2026-11-25 19:56 UTC ## O que faz / What it does Com `VICTORY_HIDDEN_WINDOW=1`, a janela de nível superior que o título cria fica à direita da área de trabalho virtual (fora de todas as telas), com `WS_EX_TOOLWINDOW` (fora da barra de tarefas) e `WS_EX_NOACTIVATE` (nunca pega o foco). Desligado por padrão; janelas filhas não mudam. With `VICTORY_HIDDEN_WINDOW=1`, the title's top-level window is placed right of the virtual desktop (off every screen), with `WS_EX_TOOLWINDOW` (out of the taskbar) and `WS_EX_NOACTIVATE` (never takes focus). Off unless set; child windows are left alone. ## Por quê / Why Para rodar testes sem supervisão numa máquina em uso: a janela continua visível para o sistema, então a swap chain apresenta normalmente e as capturas (`VICTORY_CAPTURE`, `VICTORY_CAPTURE_WORLD`) continuam funcionando, junto com `VICTORY_KEYS` e o frame log — sem a janela cobrir a área de trabalho nem roubar o teclado. For unattended test runs on a machine in use: the window stays visible to the system, so the swap chain presents as usual and frame captures keep working, together with `VICTORY_KEYS` and the frame log, without covering the desktop or stealing keyboard focus. ## Testado / Tested Dezenas de rodadas de 5–10 min no mundo 3D (RTX 3060 12 GB, Windows 11): janela fora da tela, sem foco, quadros capturados normalmente, frame log igual ao das rodadas com janela visível. `cargo test -p victory-hle lifecycle` passa. Dozens of 5–10 min runs into the 3D world (RTX 3060 12 GB, Windows 11): window off-screen and unfocused, frames captured as usual. `cargo test -p victory-hle lifecycle` passes.
With VICTORY_HIDDEN_WINDOW=1 the top-level window the title creates is
placed right of the virtual desktop, with WS_EX_TOOLWINDOW (out of the
taskbar) and WS_EX_NOACTIVATE (never takes focus). The window stays
visible to the system, so the swap chain presents as usual and frame
captures (VICTORY_CAPTURE, VICTORY_CAPTURE_WORLD) keep working: test runs
can go on in the background on a machine that is in use, with scripted
keys (VICTORY_KEYS) and the frame log, without the window covering the
desktop or stealing keyboard focus. Off unless set; child windows are
left alone.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:41:38 +00:00
github manually merged commit 4e1d65f094 into gh-pr/31/base 2026-11-26 03:41:40 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.