fix(browser): the bot opens its pages in windows of their own behind, so it never takes the focus
On the shared screen a tab brought to the front makes Chrome bring its window forward and take the keyboard focus from the game or program the user is in (seen on the game PC). The botBrowser tool now opens each person's page in a window of its own, behind and at the place and size of the bot browser's window (Target.createTarget with newWindow and background), and closes it again if the connection to it fails. While the browser runs on the virtual monitor, the app looks for new Chrome windows every 200 ms and settles each like the first (tool window, fitted to the work area, without activating it), the newest in front of the older ones, so the shared screen shows the page the bot opened last. Checked on the game PC: the bot's window loading a public page comes in front of the first, both out of the taskbar and Alt+Tab, the focus staying in Discord also with the user idle for hours. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -282,6 +282,7 @@ LLM과 STT를 함께 켠 측정(M0 `gamemode_stt`, 게임 없음). STT를 먼저
|
||||
- 디스코드에서는 "화면" 탭에서 그 가상 모니터를 고릅니다.
|
||||
- Alt+Tab에서는 그대로 빠지고, 실제 모니터에도 보이지 않습니다.
|
||||
- 크롬 창을 처음부터 띄우면 사용자가 하던 게임의 포커스를 가져갈 수 있어서, 창 없이 켠 뒤 앱이 CDP로 창을 뒤에서 엽니다. Windows가 가상 모니터에도 작업 표시줄을 두면 페이지 아래를 가리지 않게 창을 작업 영역에 맞춥니다.
|
||||
- 봇이 페이지를 열 때도 탭이 아니라 사람마다 창을 하나씩 뒤에서 엽니다. 크롬은 탭을 앞으로 보여 줄 때 창을 앞으로 꺼내려 하고, Windows가 이를 허용하는 때에는 키보드 포커스를 가져갑니다(게임PC에서 관찰, 2026-11-15). 뒤에서 연 창은 포커스를 가져가지 않으며, 앱이 새 창을 찾아 같은 방식으로 정리하고 가장 최근에 연 창을 가상 모니터 맨 앞에 둡니다.
|
||||
- **서버 Windows 가상머신 확인(2026-11-14)**: 드라이버 설치(SignPath 질문 한 번)와 제거(장치·드라이버 패키지·레지스트리·설정 폴더 남지 않음), 설치 직후 모니터 꺼짐, 봇용 크롬을 켜는 동안만 실제 모니터 오른쪽 아래 구석(1024,768)에 1280x720으로 켜짐, 크롬 창 하나가 그 모니터의 작업 영역을 채우고 봇의 탭도 그 창에 열림, 메모장에 입력하는 동안 포커스를 뺏지 않음, 작업 표시줄에 버튼 없음, 정지 뒤 크롬 프로세스 0개와 모니터 꺼짐. 남은 확인: 디스코드 "화면" 탭에 그 모니터가 나오고 공유되는지, 커서, 게임PC(실제 GPU)에서의 동작.
|
||||
|
||||
## 다른 사람의 디스코드 화면공유 보기 (창 분리 방식)
|
||||
|
||||
Reference in New Issue
Block a user